org.apache.commons.io.input

Class DemuxInputStream

  • All Implemented Interfaces:
    Closeable, AutoCloseable


    public class DemuxInputStreamextends InputStream
    Data written to this stream is forwarded to a stream that has been associated with this thread.
    Version:
    $Id: DemuxInputStream.java 1586350 2014-04-10 15:57:20Z ggregory $
    • Constructor Detail

      • DemuxInputStream

        public DemuxInputStream()
    • Method Detail

      • bindStream

        public InputStream bindStream(InputStream input)
        Bind the specified stream to the current thread.
        Parameters:
        input - the stream to bind
        Returns:
        the InputStream that was previously active
      • read

        public int read()         throws IOException
        Read byte from stream associated with current thread.
        Specified by:
        read in class InputStream
        Returns:
        the byte read from stream
        Throws:
        IOException - if an error occurs

Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14