| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final Deque | |
| private final PrintStream | |
| private final ThreadLocal | |
| private final Consumer |
| Access | Constructor and Description |
|---|---|
| private | StreamInterceptor(PrintStream originalStream, Consumer<PrintStream> unregisterAction, int maxNumberOfBytesPerThread)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv String | |
| private @Nullable StreamInterceptor. | |
| private void | |
| pack-priv static Optional | register(PrintStream originalStream, Consumer<PrintStream> streamSetter, int maxNumberOfBytesPerThread)
|
| pack-priv static Optional | |
| pack-priv static Optional | |
| pack-priv void | |
| public void | |
| public void | write(byte[] b)
Overrides java. Writes all bytes from the specified byte array to this stream. |
| public void | write(byte[] buf, int off, int len)
Overrides java. Writes |
| maxNumberOfBytesPerThread | back to summary |
|---|---|
| private final int maxNumberOfBytesPerThread | |
| mostRecentOutputs | back to summary |
|---|---|
| private final Deque<StreamInterceptor. | |
| originalStream | back to summary |
|---|---|
| private final PrintStream originalStream | |
| output | back to summary |
|---|---|
| private final ThreadLocal<StreamInterceptor. | |
| unregisterAction | back to summary |
|---|---|
| private final Consumer<PrintStream> unregisterAction | |
| StreamInterceptor | back to summary |
|---|---|
| private StreamInterceptor(PrintStream originalStream, Consumer<PrintStream> unregisterAction, int maxNumberOfBytesPerThread) | |
| capture | back to summary |
|---|---|
| pack-priv void capture() | |
| consume | back to summary |
|---|---|
| pack-priv String consume() | |
| getOutput | back to summary |
|---|---|
| private @Nullable StreamInterceptor. | |
| pushToTop | back to summary |
|---|---|
| private void pushToTop(StreamInterceptor. | |
| register | back to summary |
|---|---|
| pack-priv static Optional | |
| registerStderr | back to summary |
|---|---|
| pack-priv static Optional | |
| registerStdout | back to summary |
|---|---|
| pack-priv static Optional | |
| unregister | back to summary |
|---|---|
| pack-priv void unregister() | |
| write | back to summary |
|---|---|
| public void write(int b) Overrides java. Doc from java. Writes the specified byte to this stream. If the byte is a newline and
automatic flushing is enabled then the Note that the byte is written as given; to write a character that
will be translated according to the default charset, use the
| |
| write | back to summary |
|---|---|
| public void write(byte[] b) Overrides java. Doc from java. Writes all bytes from the specified byte array to this stream. If
automatic flushing is enabled then the Note that the bytes will be written as given; to write characters
that will be translated according to the default charset, use the
| |
| write | back to summary |
|---|---|
| public void write(byte[] buf, int off, int len) Overrides java. Doc from java. Writes Note that the bytes will be written as given; to write characters
that will be translated according to the default charset, use the
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Deque |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | |
| pack-priv void | |
| pack-priv String |
| markedPositions | back to summary |
|---|---|
| private final Deque<Integer> markedPositions | |
| RewindableByteArrayOutputStream | back to summary |
|---|---|
| pack-priv RewindableByteArrayOutputStream() | |
| isMarked | back to summary |
|---|---|
| pack-priv boolean isMarked() | |
| mark | back to summary |
|---|---|
| pack-priv void mark() | |
| rewind | back to summary |
|---|---|
| pack-priv String rewind() | |