Package org.forgerock.http.io
Class PipeBufferedStream
java.lang.Object
org.forgerock.http.io.PipeBufferedStream
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.- 
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Since 25.0.0.PipeBufferedStream(Factory<Buffer> bufferFactory) Constructs a newPipeBufferedStreamwith the givenFactory. - 
Method Summary
 
- 
Constructor Details
- 
PipeBufferedStream
Deprecated.Since 25.0.0. Prefer usingPipeBufferedStream(Factory)to provide your own Buffer FactoryConstructs a newPipeBufferedStreamwith a defaultFactory. - 
PipeBufferedStream
Constructs a newPipeBufferedStreamwith the givenFactory.- Parameters:
 bufferFactory- The factory to use to create the buffer holding the bytes.
 
 - 
 - 
Method Details
- 
getIn
Returns the output stream which writes to the pipe.- Returns:
 - The output stream.
 
 - 
getOut
Returns the input stream which reads from the pipe.- Returns:
 - The input stream.
 
 
 -