public class Utf8LineParser
extends java.lang.Object
"\n" as a line termination character.
For use with new IO framework that is based on ByteBuffer parsing.
| Constructor | Description |
|---|---|
Utf8LineParser() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
parse(java.nio.ByteBuffer buf) |
Parse a ByteBuffer (could be a partial buffer), and return once a complete line of UTF8 parsed text has been reached.
|
public java.lang.String parse(java.nio.ByteBuffer buf)
buf - the buffer to parse (could be an incomplete buffer)remaining bytes of
the provided ByteBuffer. (In the case of a null, a subsequent ByteBuffer with a line end termination should be provided)Utf8Appendable.NotUtf8Exception - if the input buffer has bytes that do not conform to UTF8 validation (validation performed by Utf8StringBuilderCopyright © 1995–2018 Webtide. All rights reserved.