Class PipeBufferedStream


  • public final class PipeBufferedStream
    extends Object
    Represents a pipe for transferring bytes from an OutputStream to a InputStream. This class is not thread-safe : the buffer has to be fully filled before reading from it : if the consumers reads faster than the producer writes into it, then the consumer will get to the end of the buffer and that will be interpreted an end-of-stream.
    • Method Detail

      • getIn

        public OutputStream getIn()
        Returns the output stream which writes to the pipe.
        Returns:
        The output stream.
      • getOut

        public InputStream getOut()
        Returns the input stream which reads from the pipe.
        Returns:
        The input stream.