PipedInputStream.
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private final InputStream | |
| private final Object | |
| private final OutputStream | |
| private boolean | |
| private int | size
the size of the buffer content |
| private int | tail
the point at which a read shall occur |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public InputStream | |
| public OutputStream |
| buffer | back to summary |
|---|---|
| private final byte[] buffer | |
| in | back to summary |
|---|---|
| private final InputStream in | |
| lock | back to summary |
|---|---|
| private final Object lock | |
| out | back to summary |
|---|---|
| private final OutputStream out | |
| readClosed | back to summary |
|---|---|
| private boolean readClosed | |
| size | back to summary |
|---|---|
| private int size the size of the buffer content | |
| tail | back to summary |
|---|---|
| private int tail the point at which a read shall occur | |
| writeClosed | back to summary |
|---|---|
| private boolean writeClosed | |
| Pipe | back to summary |
|---|---|
| public Pipe(int bufferSize) Construct a new instance.
| |
| await | back to summary |
|---|---|
| public void await() Wait for the read side to close. Used when the writer needs to know when the reader finishes consuming a message. | |
| getIn | back to summary |
|---|---|
| public InputStream getIn() Get the input (read) side of the pipe.
| |
| getOut | back to summary |
|---|---|
| public OutputStream getOut() Get the output (write) side of the pipe.
| |