Provider un-escaping unicode escape sequences in the input sequence.
| Modifier and Type | Class and Description |
|---|---|
| public static class | UnicodeEscapeProcessingProvider.
Processor keeping track of the current line and column in a stream of incoming characters. |
| public static class | UnicodeEscapeProcessingProvider.
An algorithm mapping |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private char[] | |
| private Provider | |
| private final UnicodeEscapeProcessingProvider. | |
| private int | |
| private final UnicodeEscapeProcessingProvider. | |
| private final UnicodeEscapeProcessingProvider. | |
| private int | |
| private static final char | |
| private static final char | |
| private static final int | |
| private static final char |
| Access | Constructor and Description |
|---|---|
| public | |
| public | UnicodeEscapeProcessingProvider(int bufferSize, Provider input)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| private int | |
| private int | |
| public void | close()
Implements com. |
| private static int | |
| private int | |
| public UnicodeEscapeProcessingProvider. | |
| public UnicodeEscapeProcessingProvider. | |
| public UnicodeEscapeProcessingProvider. | |
| private boolean | |
| private int | Returns: The next character or-1 if no more input is available.Retrieves the next un-escaped character from the buffered |
| private int | Returns: The next character or-1 if no more input is available.Processes column/line information from the input file. |
| private int | Returns: The next character or-1 if no more characters are available.Produces the next un-escaped character to be written to the output. |
| private void | |
| private void | |
| public int | read(char[]
Destination buffer buffer, final int Offset at which to start storing characters offset, int The maximum possible number of characters to read len)Implements com. |
| private int | |
| private int |
| _backslashSeen | back to summary |
|---|---|
| private boolean _backslashSeen | |
| _data | back to summary |
|---|---|
| private char[] _data | |
| _input | back to summary |
|---|---|
| private Provider _input | |
| _inputLine | back to summary |
|---|---|
| private final UnicodeEscapeProcessingProvider. | |
| _len | back to summary |
|---|---|
| private int _len The number of characters in | |
| _mappingBuilder | back to summary |
|---|---|
| private final UnicodeEscapeProcessingProvider. | |
| _outputLine | back to summary |
|---|---|
| private final UnicodeEscapeProcessingProvider. | |
| _pos | back to summary |
|---|---|
| private int _pos The position in | |
| BACKSLASH | back to summary |
|---|---|
| private static final char BACKSLASH | |
| CR | back to summary |
|---|---|
| private static final char CR | |
| EOF | back to summary |
|---|---|
| private static final int EOF | |
| LF | back to summary |
|---|---|
| private static final char LF | |
| UnicodeEscapeProcessingProvider | back to summary |
|---|---|
| public UnicodeEscapeProcessingProvider(Provider input) Creates a | |
| UnicodeEscapeProcessingProvider | back to summary |
|---|---|
| public UnicodeEscapeProcessingProvider(int bufferSize, Provider input) Creates a | |
| backSlashSeen | back to summary |
|---|---|
| private int backSlashSeen() throws IOException | |
| clearBackSlashSeen | back to summary |
|---|---|
| private int clearBackSlashSeen(int next) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements com. Doc from com. Closes the stream and releases any system resources associated with it.
| |
| digit | back to summary |
|---|---|
| private static int digit(int ch) | |
| fillBuffer | back to summary |
|---|---|
| private int fillBuffer() throws IOException | |
| getInputCounter | back to summary |
|---|---|
| public UnicodeEscapeProcessingProvider. The | |
| getOutputCounter | back to summary |
|---|---|
| public UnicodeEscapeProcessingProvider. The | |
| getPositionMapping | back to summary |
|---|---|
| public UnicodeEscapeProcessingProvider. The | |
| isBufferEmpty | back to summary |
|---|---|
| private boolean isBufferEmpty() | |
| nextBufferedChar | back to summary |
|---|---|
| private int nextBufferedChar() throws IOException Retrieves the next un-escaped character from the buffered
| |
| nextInputChar | back to summary |
|---|---|
| private int nextInputChar() throws IOException Processes column/line information from the input file.
| |
| nextOutputChar | back to summary |
|---|---|
| private int nextOutputChar() throws IOException Produces the next un-escaped character to be written to the output.
| |
| pushBack | back to summary |
|---|---|
| private void pushBack(int ch) | |
| pushBackUs | back to summary |
|---|---|
| private void pushBackUs(int cnt) | |
| read | back to summary |
|---|---|
| public int read(char[] buffer, final int offset, int len) throws IOException Implements com. Doc from com. Reads characters into an array
| |
| readDigits | back to summary |
|---|---|
| private int readDigits(int uCnt, int next3) throws IOException | |
| unicodeStartSeen | back to summary |
|---|---|
| private int unicodeStartSeen() throws IOException | |
process(int)
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private boolean | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | |
| public Position | |
| private void | |
| public int |
| _column | back to summary |
|---|---|
| private int _column | |
| _crSeen | back to summary |
|---|---|
| private boolean _crSeen Whether | |
| _line | back to summary |
|---|---|
| private int _line | |
| LineCounter | back to summary |
|---|---|
| public LineCounter() Creates a | |
| getColumn | back to summary |
|---|---|
| public int getColumn() The column of the currently processed input character. | |
| getLine | back to summary |
|---|---|
| public int getLine() The line of the currently processed input character. | |
| getPosition | back to summary |
|---|---|
| public Position getPosition() The current position. | |
| incLine | back to summary |
|---|---|
| private void incLine() | |
| process | back to summary |
|---|---|
| public int process(int ch) Analyzes the given character for line feed. | |
Position form two corresponding files.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| public static interface | UnicodeEscapeProcessingProvider.
Algorithm updating a |
| Modifier and Type | Field and Description |
|---|---|
| private final List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public boolean | |
| public UnicodeEscapeProcessingProvider. | |
| public Position | |
| public Range |
| _deltas | back to summary |
|---|---|
| private final List<UnicodeEscapeProcessingProvider. | |
| PositionMapping | back to summary |
|---|---|
| public PositionMapping() | |
| add | back to summary |
|---|---|
| pack-priv void add(int line, int column, int lineDelta, int columnDelta) | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Whether this is the identity transformation. | |
| lookup | back to summary |
|---|---|
| public UnicodeEscapeProcessingProvider. Looks up the | |
| transform | back to summary |
|---|---|
| public Position transform(Position pos) Transforms the given | |
| transform | back to summary |
|---|---|
| public Range transform(Range range) Transforms the given | |
| Modifier and Type | Field and Description |
|---|---|
| private final int | _columnDelta
The offset to add to the |
| private final int | _lineDelta
The offset to add to the |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | toString()
Overrides com. |
| public int | transformColumn(int sourceColumn)
Implements com. |
| public int | transformLine(int sourceLine)
Implements com. |
| _columnDelta | back to summary |
|---|---|
| private final int _columnDelta The offset to add to the | |
| _lineDelta | back to summary |
|---|---|
| private final int _lineDelta The offset to add to the | |
| DeltaInfo | back to summary |
|---|---|
| public DeltaInfo(int line, int column, int lineDelta, int columnDelta) Creates a | |
| toString | back to summary |
|---|---|
| public String toString() Overrides com. Doc from java. Returns a string representation of the object. | |
| transformColumn | back to summary |
|---|---|
| public int transformColumn(int sourceColumn) Implements com. Doc from com. Maps the given column to an original column.
| |
| transformLine | back to summary |
|---|---|
| public int transformLine(int sourceLine) Implements com. Doc from com. Maps the given line to an original line.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final UnicodeEscapeProcessingProvider. | NONE
The identity position mapping. |
| Modifier and Type | Method and Description |
|---|---|
| public default Position | |
| public int | |
| public int |
| NONE | back to summary |
|---|---|
| public static final UnicodeEscapeProcessingProvider. The identity position mapping. | |
| transform | back to summary |
|---|---|
| public default Position transform(Position pos) The transformed position. | |
| transformColumn | back to summary |
|---|---|
| public int transformColumn(int column) Maps the given column to an original column. | |
| transformLine | back to summary |
|---|---|
| public int transformLine(int line) Maps the given line to an original line. | |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private UnicodeEscapeProcessingProvider. | |
| private int | |
| private final UnicodeEscapeProcessingProvider. | |
| private UnicodeEscapeProcessingProvider. |
| Access | Constructor and Description |
|---|---|
| public | PositionMappingBuilder(UnicodeEscapeProcessingProvider.
The source left,LineCounter.The target rightLineCounter.Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public UnicodeEscapeProcessingProvider. | |
| public void |
| _columnDelta | back to summary |
|---|---|
| private int _columnDelta | |
| _left | back to summary |
|---|---|
| private UnicodeEscapeProcessingProvider. | |
| _lineDelta | back to summary |
|---|---|
| private int _lineDelta | |
| _mapping | back to summary |
|---|---|
| private final UnicodeEscapeProcessingProvider. | |
| _right | back to summary |
|---|---|
| private UnicodeEscapeProcessingProvider. | |
| PositionMappingBuilder | back to summary |
|---|---|
| public PositionMappingBuilder(UnicodeEscapeProcessingProvider. Creates a
| |
| getMapping | back to summary |
|---|---|
| public UnicodeEscapeProcessingProvider. The built | |
| update | back to summary |
|---|---|
| public void update() | |