| Modifier and Type | Field and Description |
|---|---|
| private final char[] | |
| private final int | |
| private int[] | codePointsWindow
Read data (as a moving window for input stream) |
| private int | |
| private int | dataLength
Real length of the data in dataWindow |
| private int | |
| private boolean | |
| private int | index
index is only required to implement 1024 key length restriction and the total length restriction |
| private int | |
| private final String | |
| private int | pointer
The variable points to the current position in the data array |
| private final Reader | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | StreamReader(Reader
- the input reader, LoadSettings - configuration options loadSettings)
Deprecated
use the other constructor with LoadSettings first
|
| public | |
| public | StreamReader(String
- the input stream, LoadSettings - configuration options loadSettings)
Deprecated
use the other constructor with LoadSettings first
|
| 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 | Returns: current position as number (in characters) from the beginning of the current line
|
| public int | Returns: index of the current position from the beginning of the current documentGet the position of the currect char in the current YAML document |
| public int | |
| public int | |
| public Optional | |
| public static boolean | Returns: true only when everything is human-readable- content to be checked for human-readability data)Check if the all the data is human-readable (used in Representer) |
| public static boolean | Returns: true only when the code point is human-readable- code point to be checked for human-readability c)Check if the code point is human-readable |
| private void | |
| public int | Returns: the next code point or 0 if emptyPeek the next code point (look without moving the pointer) |
| public int | Returns: the next index-th code point or 0 if emptyto peek index)Peek the next index-th code point |
| public String | Returns: the String representationamount of the characters to convert length)Create String from 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 | |
| bufferSize | back to summary |
|---|---|
| private final int bufferSize | |
| codePointsWindow | back to summary |
|---|---|
| private int[] codePointsWindow Read data (as a moving window for input stream) | |
| column | back to summary |
|---|---|
| private int column | |
| dataLength | back to summary |
|---|---|
| private int dataLength Real length of the data in dataWindow | |
| documentIndex | back to summary |
|---|---|
| private int documentIndex | |
| eof | back to summary |
|---|---|
| private boolean eof | |
| index | back to summary |
|---|---|
| private int index index is only required to implement 1024 key length restriction and the total length restriction | |
| line | back to summary |
|---|---|
| private int line | |
| name | back to summary |
|---|---|
| private final 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 | |
| useMarks | back to summary |
|---|---|
| private final boolean useMarks | |
| StreamReader | back to summary |
|---|---|
| public StreamReader(Reader reader, LoadSettings loadSettings)
Deprecated use the other constructor with LoadSettings first
| |
| StreamReader | back to summary |
|---|---|
| public StreamReader(LoadSettings loadSettings, Reader reader) Create
| |
| StreamReader | back to summary |
|---|---|
| public StreamReader(String stream, LoadSettings loadSettings)
Deprecated use the other constructor with LoadSettings first
| |
| StreamReader | back to summary |
|---|---|
| public StreamReader(LoadSettings loadSettings, String stream) Create
| |
| ensureEnoughData | back to summary |
|---|---|
| private boolean ensureEnoughData() | |
| ensureEnoughData | back to summary |
|---|---|
| private boolean ensureEnoughData(int size) | |
| forward | back to summary |
|---|---|
| public void forward() read the next character and move the pointer. if the last character is high surrogate one more character will be read | |
| 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 currect 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 Optional Generate | |
| isPrintable | back to summary |
|---|---|
| public static boolean isPrintable(final String data) Check if the all the data is human-readable (used in Representer)
| |
| isPrintable | back to summary |
|---|---|
| public static boolean isPrintable(final int c) Check if the code point is human-readable
| |
| moveIndices | back to summary |
|---|---|
| private void moveIndices(int length) | |
| peek | back to summary |
|---|---|
| public int peek() Peek the next code point (look without moving the pointer)
| |
| 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) Create String from 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() | |