AnsiProcessor.process* methods.
This particular class is not synchronized for improved performances.
For more information about ANSI escape codes, see Wikipedia article
AnsiProcessor
| Modifier and Type | Class and Description |
|---|---|
| public static interface | |
| public static interface | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private AnsiProcessor | |
| private static final int | |
| private final byte[] | |
| private final AnsiColors | |
| private final Charset | |
| private static final int | |
| private final AnsiOutputStream. | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private AnsiMode | |
| private final ArrayList | |
| private int | |
| private final AnsiProcessor | |
| public static final byte[] | |
| private boolean | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private int | |
| private int | |
| private final AnsiType | |
| private final AnsiOutputStream. | |
| private final AnsiOutputStream. |
| Access | Constructor and Description |
|---|---|
| public | AnsiOutputStream(OutputStream os, AnsiOutputStream.
|
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. |
| public AnsiColors | |
| public AnsiMode | |
| public int | |
| public AnsiType | |
| public void | |
| public boolean | |
| private void | |
| private void | |
| private void | |
| private void | reset(boolean
if current buffer should be skipped or written to out skipBuffer)Resets all state to continue with regular parsing |
| public void | |
| public void | |
| public void | |
| public void | write(int
the data)byte.Overrides java. byte to this output stream.
|
| ap | back to summary |
|---|---|
| private AnsiProcessor ap | |
| BEL | back to summary |
|---|---|
| private static final int BEL | |
| buffer | back to summary |
|---|---|
| private final byte[] buffer | |
| colors | back to summary |
|---|---|
| private final AnsiColors colors | |
| cs | back to summary |
|---|---|
| private final Charset cs | |
| FIRST_ESC_CHAR | back to summary |
|---|---|
| private static final int FIRST_ESC_CHAR | |
| installer | back to summary |
|---|---|
| private final AnsiOutputStream. | |
| LOOKING_FOR_CHARSET | back to summary |
|---|---|
| private static final int LOOKING_FOR_CHARSET | |
| LOOKING_FOR_FIRST_ESC_CHAR | back to summary |
|---|---|
| private static final int LOOKING_FOR_FIRST_ESC_CHAR | |
| LOOKING_FOR_INT_ARG_END | back to summary |
|---|---|
| private static final int LOOKING_FOR_INT_ARG_END | |
| LOOKING_FOR_NEXT_ARG | back to summary |
|---|---|
| private static final int LOOKING_FOR_NEXT_ARG | |
| LOOKING_FOR_OSC_COMMAND | back to summary |
|---|---|
| private static final int LOOKING_FOR_OSC_COMMAND | |
| LOOKING_FOR_OSC_COMMAND_END | back to summary |
|---|---|
| private static final int LOOKING_FOR_OSC_COMMAND_END | |
| LOOKING_FOR_OSC_PARAM | back to summary |
|---|---|
| private static final int LOOKING_FOR_OSC_PARAM | |
| LOOKING_FOR_SECOND_ESC_CHAR | back to summary |
|---|---|
| private static final int LOOKING_FOR_SECOND_ESC_CHAR | |
| LOOKING_FOR_ST | back to summary |
|---|---|
| private static final int LOOKING_FOR_ST | |
| LOOKING_FOR_STR_ARG_END | back to summary |
|---|---|
| private static final int LOOKING_FOR_STR_ARG_END | |
| MAX_ESCAPE_SEQUENCE_LENGTH | back to summary |
|---|---|
| private static final int MAX_ESCAPE_SEQUENCE_LENGTH | |
| mode | back to summary |
|---|---|
| private AnsiMode mode | |
| options | back to summary |
|---|---|
| private final ArrayList<Object> options | |
| pos | back to summary |
|---|---|
| private int pos | |
| processor | back to summary |
|---|---|
| private final AnsiProcessor processor | |
| RESET_CODE | back to summary |
|---|---|
| public static final byte[] RESET_CODE | |
| resetAtUninstall | back to summary |
|---|---|
| private boolean resetAtUninstall | |
| SECOND_CHARSET0_CHAR | back to summary |
|---|---|
| private static final int SECOND_CHARSET0_CHAR | |
| SECOND_CHARSET1_CHAR | back to summary |
|---|---|
| private static final int SECOND_CHARSET1_CHAR | |
| SECOND_ESC_CHAR | back to summary |
|---|---|
| private static final int SECOND_ESC_CHAR | |
| SECOND_OSC_CHAR | back to summary |
|---|---|
| private static final int SECOND_OSC_CHAR | |
| SECOND_ST_CHAR | back to summary |
|---|---|
| private static final int SECOND_ST_CHAR | |
| startOfValue | back to summary |
|---|---|
| private int startOfValue | |
| state | back to summary |
|---|---|
| private int state | |
| type | back to summary |
|---|---|
| private final AnsiType type | |
| uninstaller | back to summary |
|---|---|
| private final AnsiOutputStream. | |
| width | back to summary |
|---|---|
| private final AnsiOutputStream. | |
| AnsiOutputStream | back to summary |
|---|---|
| public AnsiOutputStream(OutputStream os, AnsiOutputStream. | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this output stream and releases any system resources associated with the stream.
| |
| getColors | back to summary |
|---|---|
| public AnsiColors getColors() | |
| getMode | back to summary |
|---|---|
| public AnsiMode getMode() | |
| getTerminalWidth | back to summary |
|---|---|
| public int getTerminalWidth() | |
| getType | back to summary |
|---|---|
| public AnsiType getType() | |
| install | back to summary |
|---|---|
| public void install() throws IOException | |
| isResetAtUninstall | back to summary |
|---|---|
| public boolean isResetAtUninstall() | |
| processCharsetSelect | back to summary |
|---|---|
| private void processCharsetSelect() throws IOException | |
| processEscapeCommand | back to summary |
|---|---|
| private void processEscapeCommand(int data) throws IOException | |
| processOperatingSystemCommand | back to summary |
|---|---|
| private void processOperatingSystemCommand() throws IOException | |
| reset | back to summary |
|---|---|
| private void reset(boolean skipBuffer) throws IOException Resets all state to continue with regular parsing
| |
| setMode | back to summary |
|---|---|
| public void setMode(AnsiMode mode) | |
| setResetAtUninstall | back to summary |
|---|---|
| public void setResetAtUninstall(boolean resetAtUninstall) | |
| uninstall | back to summary |
|---|---|
| public void uninstall() throws IOException | |
| write | back to summary |
|---|---|
| public void write(int data) throws IOException Overrides java. Doc from java. Writes the specified
The
Implements the abstract
| |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| run | back to summary |
|---|---|
| public void run() throws IOException | |
| Modifier and Type | Method and Description |
|---|---|
| public int |
| getTerminalWidth | back to summary |
|---|---|
| public int getTerminalWidth() | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int |
| ZeroWidthSupplier | back to summary |
|---|---|
| public ZeroWidthSupplier() | |
| getTerminalWidth | back to summary |
|---|---|
| public int getTerminalWidth() Implements org.
| |