| Modifier and Type | Field and Description |
|---|---|
| private final char[] | |
| private static final int | |
| private int | |
| private int | dataLength
Real length of the data in dataWindow |
| private int[] | dataWindow
Read data (as a moving window for input stream) |
| private int | |
| private boolean | |
| private int | |
| private int | |
| private String | |
| private int | pointer
The variable points to the current position in the data array |
| private final Reader |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| private boolean | |
| public void | |
| public void | forward(int
amount of characters to move forward length)read the next length characters and move the pointer. |
| public int | |
| public int | Returns: index of the current position from the beginning of the current documentGet the position of the current char in the current YAML document |
| public int | |
| public int | |
| public Mark | |
| public static boolean | |
| public static boolean | |
| private void | |
| public int | |
| public int | |
| public String | Returns: the next length code pointsamount of the characters to peek length)peek the next length code points |
| public String | Returns: the next length code pointsamount of characters to get length)prefix(length) immediately followed by forward(length) |
| public void | |
| private void |
| buffer | back to summary |
|---|---|
| private final char[] buffer | |
| BUFFER_SIZE | back to summary |
|---|---|
| private static final int BUFFER_SIZE | |
| column | back to summary |
|---|---|
| private int column | |
| dataLength | back to summary |
|---|---|
| private int dataLength Real length of the data in dataWindow | |
| dataWindow | back to summary |
|---|---|
| private int[] dataWindow Read data (as a moving window for input stream) | |
| documentIndex | back to summary |
|---|---|
| private int documentIndex | |
| eof | back to summary |
|---|---|
| private boolean eof | |
| index | back to summary |
|---|---|
| private int index | |
| line | back to summary |
|---|---|
| private int line | |
| name | back to summary |
|---|---|
| private String name | |
| pointer | back to summary |
|---|---|
| private int pointer The variable points to the current position in the data array | |
| stream | back to summary |
|---|---|
| private final Reader stream | |
| StreamReader | back to summary |
|---|---|
| public StreamReader(String stream) | |
| StreamReader | back to summary |
|---|---|
| public StreamReader(Reader reader) | |
| ensureEnoughData | back to summary |
|---|---|
| private boolean ensureEnoughData() | |
| ensureEnoughData | back to summary |
|---|---|
| private boolean ensureEnoughData(int size) | |
| forward | back to summary |
|---|---|
| public void forward() | |
| forward | back to summary |
|---|---|
| public void forward(int length) read the next length characters and move the pointer. if the last character is high surrogate one more character will be read
| |
| getColumn | back to summary |
|---|---|
| public int getColumn() | |
| getDocumentIndex | back to summary |
|---|---|
| public int getDocumentIndex() Get the position of the current char in the current YAML document
| |
| getIndex | back to summary |
|---|---|
public int getIndex()
| |
| getLine | back to summary |
|---|---|
| public int getLine() | |
| getMark | back to summary |
|---|---|
| public Mark getMark() | |
| isPrintable | back to summary |
|---|---|
| public static boolean isPrintable(final String data) | |
| isPrintable | back to summary |
|---|---|
| public static boolean isPrintable(final int c) | |
| moveIndices | back to summary |
|---|---|
| private void moveIndices(int length) | |
| peek | back to summary |
|---|---|
| public int peek() | |
| peek | back to summary |
|---|---|
| public int peek(int index) Peek the next index-th code point
| |
| prefix | back to summary |
|---|---|
| public String prefix(int length) peek the next length code points
| |
| prefixForward | back to summary |
|---|---|
| public String prefixForward(int length) prefix(length) immediately followed by forward(length)
| |
| resetDocumentIndex | back to summary |
|---|---|
| public void resetDocumentIndex() Reset the position to start (at the start of a new document in the stream) | |
| update | back to summary |
|---|---|
| private void update() | |