public final class PipeBufferedStream extends Object
OutputStream to a
BranchingInputStream.
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 and Description |
|---|
PipeBufferedStream()
Constructs a new
PipeBufferedStream with a default Factory. |
PipeBufferedStream(Factory<Buffer> bufferFactory)
Constructs a new
PipeBufferedStream with the given Factory. |
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
getIn()
Returns the output stream which writes to the pipe.
|
BranchingInputStream |
getOut()
Returns the input stream which reads from the pipe.
|
public PipeBufferedStream()
PipeBufferedStream with a default Factory.public PipeBufferedStream(Factory<Buffer> bufferFactory)
PipeBufferedStream with the given Factory.bufferFactory - The buffer factory to use to create the BranchingInputStreampublic OutputStream getIn()
public BranchingInputStream getOut()
Copyright © 2025 Open Identity Platform Community. All rights reserved.