| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final Logger | |
| private static final int | |
| private static final ThreadLocal |
| Modifier and Type | Method and Description |
|---|---|
| private static StringBuilder | Returns: aStringBuilderReturns a |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public boolean | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| private static void | trimToMaxSize(final StringBuilder
the StringBuilder to check stringBuilder, final int the maximum number of characters the StringBuilder is allowed to have maxSize)Ensures that the char[] array of the specified StringBuilder does not exceed the specified number of characters. |
| private void |
| id | back to summary |
|---|---|
| private final String id | |
| log | back to summary |
|---|---|
| private final Logger log | |
| MAX_STRING_BUILDER_SIZE | back to summary |
|---|---|
| private static final int MAX_STRING_BUILDER_SIZE | |
| THREAD_LOCAL | back to summary |
|---|---|
| private static final ThreadLocal<StringBuilder> THREAD_LOCAL | |
| Wire | back to summary |
|---|---|
| public Wire(final Logger log, final String id) | |
| getStringBuilder | back to summary |
|---|---|
| private static StringBuilder getStringBuilder() Returns a
| |
| input | back to summary |
|---|---|
| public void input(final byte[] b, final int pos, final int off) | |
| input | back to summary |
|---|---|
| public void input(final byte[] b) | |
| input | back to summary |
|---|---|
| public void input(final int b) | |
| input | back to summary |
|---|---|
| public void input(final String s) | |
| input | back to summary |
|---|---|
| public void input(final ByteBuffer b) | |
| isEnabled | back to summary |
|---|---|
| public boolean isEnabled() | |
| output | back to summary |
|---|---|
| public void output(final byte[] b, final int pos, final int off) | |
| output | back to summary |
|---|---|
| public void output(final byte[] b) | |
| output | back to summary |
|---|---|
| public void output(final int b) | |
| output | back to summary |
|---|---|
| public void output(final String s) | |
| output | back to summary |
|---|---|
| public void output(final ByteBuffer b) | |
| trimToMaxSize | back to summary |
|---|---|
| private static void trimToMaxSize(final StringBuilder stringBuilder, final int maxSize) Ensures that the char[] array of the specified StringBuilder does not exceed the specified number of characters. This method is useful to ensure that excessively long char[] arrays are not kept in memory forever.
| |
| wire | back to summary |
|---|---|
| private void wire(final String header, final byte[] b, final int pos, final int off) | |