Writer and calls corresponding process* methods.
For more information about ANSI escape codes, see:
http://en.wikipedia.org/wiki/ANSI_escape_code
This class just filters out the escape codes so that they are not
sent out to the underlying Writer: process* methods
are empty. Subclasses should actually perform the ANSI escape behaviors
by implementing active code in process* methods.
| Modifier and Type | Field and Description |
|---|---|
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | ATTRIBUTE_NEGATIVE_Off
Deprecated
|
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| private static final int | |
| protected static final int | |
| protected static final int | |
| private final char[] | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| private static final int | |
| protected 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 | |
| protected static final int | |
| private static final int | |
| private final ArrayList | |
| private int | |
| protected static final int | |
| private static final char[] | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private int | |
| pack-priv int | |
| protected static final int | |
| protected static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. Closes the stream, flushing it first. |
| private int | getNextOptionInt(Iterator<Object>
the underlying iterator optionsIterator)Helper for processEscapeCommand() to iterate over integer options |
| private int | |
| private int | |
| protected void | |
| protected void | processChangeIconName(String
the icon name name)process |
| protected void | processChangeIconNameAndWindowTitle(String
the label label)process |
| protected void | processChangeWindowTitle(String
the title title)process |
| private boolean | Returns: true if the charcter set select command was processed.Process character set sequence. |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | processCursorTo(int
the row row, int the column col)process |
| protected void | processCursorToColumn(int
the column x)process |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | processDeleteLine(int
the option optionInt)Process |
| protected void | processEraseLine(int
the erase option eraseOption)Process |
| protected void | processEraseScreen(int
the erase option eraseOption)Process |
| private boolean | Returns: true if the escape command was processed.the list of options options, int the command command)Process escape command |
| protected void | processInsertLine(int
the option optionInt)Process |
| private boolean | Returns: true if the operating system command was processed.the options list options)Process operating system command. |
| protected void | processRestoreCursorPosition()
Process |
| protected void | |
| protected void | processScrollDown(int
the option optionInt)Process |
| protected void | |
| protected void | processSetAttribute(int
the attribute to set attribute)process |
| protected void | processSetBackgroundColor(int
the background color color)process |
| protected void | processSetBackgroundColor(int
the background color color, boolean is high intensity? bright)process |
| protected void | processSetBackgroundColorExt(int
the background color in the palette paletteIndex)process |
| protected void | processSetBackgroundColorExt(int
red r, int green g, int blue b)process |
| protected void | processSetForegroundColor(int
the text color color)process |
| protected void | processSetForegroundColor(int
the text color color, boolean is high intensity? bright)process |
| protected void | processSetForegroundColorExt(int
the text color in the palette paletteIndex)process |
| protected void | processSetForegroundColorExt(int
red r, int green g, int blue b)process |
| protected void | |
| protected void | processUnknownOperatingSystemCommand(int
the command command, String the param param)Process unknown |
| private void | reset(boolean
if current buffer should be skipped or written to out skipBuffer)Resets all state to continue with regular parsing |
| public synchronized void | |
| public void | write(char[] cbuf, int off, int len)
Overrides java. Writes a portion of an array of characters. |
| public void | write(String str, int off, int len)
Overrides java. Writes a portion of a string. |
| ATTRIBUTE_BLINK_FAST | back to summary |
|---|---|
| protected static final int ATTRIBUTE_BLINK_FAST | |
| ATTRIBUTE_BLINK_OFF | back to summary |
|---|---|
| protected static final int ATTRIBUTE_BLINK_OFF | |
| ATTRIBUTE_BLINK_SLOW | back to summary |
|---|---|
| protected static final int ATTRIBUTE_BLINK_SLOW | |
| ATTRIBUTE_CONCEAL_OFF | back to summary |
|---|---|
| protected static final int ATTRIBUTE_CONCEAL_OFF | |
| ATTRIBUTE_CONCEAL_ON | back to summary |
|---|---|
| protected static final int ATTRIBUTE_CONCEAL_ON | |
| ATTRIBUTE_INTENSITY_BOLD | back to summary |
|---|---|
| protected static final int ATTRIBUTE_INTENSITY_BOLD | |
| ATTRIBUTE_INTENSITY_FAINT | back to summary |
|---|---|
| protected static final int ATTRIBUTE_INTENSITY_FAINT | |
| ATTRIBUTE_INTENSITY_NORMAL | back to summary |
|---|---|
| protected static final int ATTRIBUTE_INTENSITY_NORMAL | |
| ATTRIBUTE_ITALIC | back to summary |
|---|---|
| protected static final int ATTRIBUTE_ITALIC | |
| ATTRIBUTE_NEGATIVE_Off | back to summary |
|---|---|
| protected static final int ATTRIBUTE_NEGATIVE_Off
Deprecated
| |
| ATTRIBUTE_NEGATIVE_OFF | back to summary |
|---|---|
| protected static final int ATTRIBUTE_NEGATIVE_OFF | |
| ATTRIBUTE_NEGATIVE_ON | back to summary |
|---|---|
| protected static final int ATTRIBUTE_NEGATIVE_ON | |
| ATTRIBUTE_UNDERLINE | back to summary |
|---|---|
| protected static final int ATTRIBUTE_UNDERLINE | |
| ATTRIBUTE_UNDERLINE_DOUBLE | back to summary |
|---|---|
| protected static final int ATTRIBUTE_UNDERLINE_DOUBLE | |
| ATTRIBUTE_UNDERLINE_OFF | back to summary |
|---|---|
| protected static final int ATTRIBUTE_UNDERLINE_OFF | |
| BEL | back to summary |
|---|---|
| private static final int BEL | |
| BLACK | back to summary |
|---|---|
| protected static final int BLACK | |
| BLUE | back to summary |
|---|---|
| protected static final int BLUE | |
| buffer | back to summary |
|---|---|
| private final char[] buffer | |
| CYAN | back to summary |
|---|---|
| protected static final int CYAN | |
| ERASE_LINE | back to summary |
|---|---|
| protected static final int ERASE_LINE | |
| ERASE_LINE_TO_BEGINING | back to summary |
|---|---|
| protected static final int ERASE_LINE_TO_BEGINING | |
| ERASE_LINE_TO_END | back to summary |
|---|---|
| protected static final int ERASE_LINE_TO_END | |
| ERASE_SCREEN | back to summary |
|---|---|
| protected static final int ERASE_SCREEN | |
| ERASE_SCREEN_TO_BEGINING | back to summary |
|---|---|
| protected static final int ERASE_SCREEN_TO_BEGINING | |
| ERASE_SCREEN_TO_END | back to summary |
|---|---|
| protected static final int ERASE_SCREEN_TO_END | |
| FIRST_ESC_CHAR | back to summary |
|---|---|
| private static final int FIRST_ESC_CHAR | |
| GREEN | back to summary |
|---|---|
| protected static final int GREEN | |
| 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 | |
| MAGENTA | back to summary |
|---|---|
| protected static final int MAGENTA | |
| MAX_ESCAPE_SEQUENCE_LENGTH | back to summary |
|---|---|
| private static final int MAX_ESCAPE_SEQUENCE_LENGTH | |
| options | back to summary |
|---|---|
| private final ArrayList<Object> options | |
| pos | back to summary |
|---|---|
| private int pos | |
| RED | back to summary |
|---|---|
| protected static final int RED | |
| RESET_CODE | back to summary |
|---|---|
| private static final char[] RESET_CODE | |
| 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 |
|---|---|
| pack-priv int state | |
| WHITE | back to summary |
|---|---|
| protected static final int WHITE | |
| YELLOW | back to summary |
|---|---|
| protected static final int YELLOW | |
| AnsiWriter | back to summary |
|---|---|
| public AnsiWriter(Writer out) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes the stream, flushing it first. Once the stream has been closed, further write() or flush() invocations will cause an IOException to be thrown. Closing a previously closed stream has no effect.
| |
| getNextOptionInt | back to summary |
|---|---|
| private int getNextOptionInt(Iterator<Object> optionsIterator) throws IOException Helper for processEscapeCommand() to iterate over integer options
| |
| optionInt | back to summary |
|---|---|
| private int optionInt(ArrayList<Object> options, int index) | |
| optionInt | back to summary |
|---|---|
| private int optionInt(ArrayList<Object> options, int index, int defaultValue) | |
| processAttributeRest | back to summary |
|---|---|
| protected void processAttributeRest() throws IOException process
| |
| processChangeIconName | back to summary |
|---|---|
| protected void processChangeIconName(String name) process
| |
| processChangeIconNameAndWindowTitle | back to summary |
|---|---|
| protected void processChangeIconNameAndWindowTitle(String label) process
| |
| processChangeWindowTitle | back to summary |
|---|---|
| protected void processChangeWindowTitle(String title) process
| |
| processCharsetSelect | back to summary |
|---|---|
| private boolean processCharsetSelect(ArrayList<Object> options) throws IOException Process character set sequence.
| |
| processCharsetSelect | back to summary |
|---|---|
| protected void processCharsetSelect(int set, char seq) | |
| processCursorDown | back to summary |
|---|---|
| protected void processCursorDown(int count) throws IOException process
| |
| processCursorDownLine | back to summary |
|---|---|
| protected void processCursorDownLine(int count) throws IOException process
| |
| processCursorLeft | back to summary |
|---|---|
| protected void processCursorLeft(int count) throws IOException process
| |
| processCursorRight | back to summary |
|---|---|
| protected void processCursorRight(int count) throws IOException process
| |
| processCursorTo | back to summary |
|---|---|
| protected void processCursorTo(int row, int col) throws IOException process
| |
| processCursorToColumn | back to summary |
|---|---|
| protected void processCursorToColumn(int x) throws IOException process
| |
| processCursorUp | back to summary |
|---|---|
| protected void processCursorUp(int count) throws IOException process
| |
| processCursorUpLine | back to summary |
|---|---|
| protected void processCursorUpLine(int count) throws IOException process
| |
| processDefaultBackgroundColor | back to summary |
|---|---|
| protected void processDefaultBackgroundColor() throws IOException process
| |
| processDefaultTextColor | back to summary |
|---|---|
| protected void processDefaultTextColor() throws IOException process
| |
| processDeleteLine | back to summary |
|---|---|
| protected void processDeleteLine(int optionInt) throws IOException Process
| |
| processEraseLine | back to summary |
|---|---|
| protected void processEraseLine(int eraseOption) throws IOException Process
| |
| processEraseScreen | back to summary |
|---|---|
| protected void processEraseScreen(int eraseOption) throws IOException Process
| |
| processEscapeCommand | back to summary |
|---|---|
| private boolean processEscapeCommand(ArrayList<Object> options, int command) throws IOException Process escape command
| |
| processInsertLine | back to summary |
|---|---|
| protected void processInsertLine(int optionInt) throws IOException Process
| |
| processOperatingSystemCommand | back to summary |
|---|---|
| private boolean processOperatingSystemCommand(ArrayList<Object> options) throws IOException Process operating system command. | |
| processRestoreCursorPosition | back to summary |
|---|---|
| protected void processRestoreCursorPosition() throws IOException Process
| |
| processSaveCursorPosition | back to summary |
|---|---|
| protected void processSaveCursorPosition() throws IOException Process
| |
| processScrollDown | back to summary |
|---|---|
| protected void processScrollDown(int optionInt) throws IOException Process
| |
| processScrollUp | back to summary |
|---|---|
| protected void processScrollUp(int optionInt) throws IOException Process
| |
| processSetAttribute | back to summary |
|---|---|
| protected void processSetAttribute(int attribute) throws IOException process
| |
| processSetBackgroundColor | back to summary |
|---|---|
| protected void processSetBackgroundColor(int color) throws IOException process
| |
| processSetBackgroundColor | back to summary |
|---|---|
| protected void processSetBackgroundColor(int color, boolean bright) throws IOException process
| |
| processSetBackgroundColorExt | back to summary |
|---|---|
| protected void processSetBackgroundColorExt(int paletteIndex) throws IOException process
| |
| processSetBackgroundColorExt | back to summary |
|---|---|
| protected void processSetBackgroundColorExt(int r, int g, int b) throws IOException process
| |
| processSetForegroundColor | back to summary |
|---|---|
| protected void processSetForegroundColor(int color) throws IOException process
| |
| processSetForegroundColor | back to summary |
|---|---|
| protected void processSetForegroundColor(int color, boolean bright) throws IOException process
| |
| processSetForegroundColorExt | back to summary |
|---|---|
| protected void processSetForegroundColorExt(int paletteIndex) throws IOException process
| |
| processSetForegroundColorExt | back to summary |
|---|---|
| protected void processSetForegroundColorExt(int r, int g, int b) throws IOException process
| |
| processUnknownExtension | back to summary |
|---|---|
| protected void processUnknownExtension(ArrayList<Object> options, int command) | |
| processUnknownOperatingSystemCommand | back to summary |
|---|---|
| protected void processUnknownOperatingSystemCommand(int command, String param) Process unknown
| |
| reset | back to summary |
|---|---|
| private void reset(boolean skipBuffer) throws IOException Resets all state to continue with regular parsing
| |
| write | back to summary |
|---|---|
| public synchronized void write(int data) throws IOException Overrides java. Doc from java. Writes a single character.
| |
| write | back to summary |
|---|---|
| public void write(char[] cbuf, int off, int len) throws IOException Overrides java. Doc from java. Writes a portion of an array of characters.
| |
| write | back to summary |
|---|---|
| public void write(String str, int off, int len) throws IOException Overrides java. Doc from java. Writes a portion of a string.
| |