"\n" as a line termination character.
For use with new IO framework that is based on ByteBuffer parsing.
| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private Utf8LineParser. | |
| private Utf8StringBuilder |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the line of UTF8 parsed text, or null if no line end termination has been reached within theremaining bytes of
the provided ByteBuffer. (In the case of a null, a subsequent ByteBuffer with a line end termination should be provided)the buffer to parse (could be an incomplete buffer) buf)Parse a ByteBuffer (could be a partial buffer), and return once a complete line of UTF8 parsed text has been reached. |
| private boolean |
| state | back to summary |
|---|---|
| private Utf8LineParser. | |
| utf | back to summary |
|---|---|
| private Utf8StringBuilder utf | |
| Utf8LineParser | back to summary |
|---|---|
| public Utf8LineParser() | |
| parse | back to summary |
|---|---|
| public String parse(ByteBuffer buf) Parse a ByteBuffer (could be a partial buffer), and return once a complete line of UTF8 parsed text has been reached.
| |
| parseByte | back to summary |
|---|---|
| private boolean parseByte(byte b) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Utf8LineParser. | |
| public static final Utf8LineParser. | |
| public static final Utf8LineParser. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Utf8LineParser. | |
| public static Utf8LineParser. |
| END | back to summary |
|---|---|
| public static final Utf8LineParser. | |
| PARSE | back to summary |
|---|---|
| public static final Utf8LineParser. | |
| START | back to summary |
|---|---|
| public static final Utf8LineParser. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static Utf8LineParser. | |
| values | back to summary |
|---|---|
| public static Utf8LineParser. | |