| Modifier and Type | Field and Description |
|---|---|
| private Buffer | |
| private byte[] | |
| private boolean | |
| private int | |
| private long | |
| private static final Buffer | EMPTY_BUFFER
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private Handler | |
| private Handler | |
| private Handler | |
| private int | |
| private boolean | |
| private int | |
| private int | |
| private int | |
| private final ReadStream | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | delimitedMode(String
the new delimeter delim)Implements io. Flip the parser into delimited mode, and where the delimiter can be represented
by the String |
| public void | delimitedMode(Buffer
the new delimiter delim)Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Flip the parser into delimited mode, and where the delimiter can be represented
by the delimiter |
| private void | |
| public RecordParser | |
| public RecordParser | exceptionHandler(Handler<Throwable> handler)
Implements io.
|
| public RecordParser | fetch(long amount)
Implements io. Fetch the specified |
| public void | fixedSizeMode(int
the new record size size)Implements io. Flip the parser into fixed size mode, where the record size is specified by |
| public void | handle(Buffer
a chunk of data buffer)Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
This method is called to provide the parser with data. |
| private void | |
| public RecordParser | |
| public static Buffer | Returns: The byte[] form of the stringthe string str)
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Helper method to convert a latin-1 String to an array of bytes for use as a delimiter Please do not use this for non latin-1 characters |
| public RecordParser | Returns: a reference to this, so the API can be used fluentlythe maximum record size size)Implements io. Set the maximum allowed size for a record when using the delimited mode. |
| public static RecordParser | newDelimited(String
the initial delimiter string delim, ReadStream<Buffer> stream, Handler<Buffer> handler that will receive the output output)Create a new |
| public static RecordParser | newDelimited(Buffer
the initial delimiter buffer delim, ReadStream<Buffer> stream, Handler<Buffer> handler that will receive the output output)
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Create a new |
| public static RecordParser | newFixed(int
the initial record size size, ReadStream<Buffer> stream, Handler<Buffer> handler that will receive the output output)Create a new |
| private int | |
| private int | |
| public RecordParser | pause()
Implements io. Pause the |
| public RecordParser | resume()
Implements io. Resume reading, and sets the buffer in |
| public void |
| buff | back to summary |
|---|---|
| private Buffer buff
References Deprecated
See corresponding docs for further information. | |
| delim | back to summary |
|---|---|
| private byte[] delim | |
| delimited | back to summary |
|---|---|
| private boolean delimited | |
| delimPos | back to summary |
|---|---|
| private int delimPos | |
| demand | back to summary |
|---|---|
| private long demand | |
| EMPTY_BUFFER | back to summary |
|---|---|
| private static final Buffer EMPTY_BUFFER
References Deprecated
See corresponding docs for further information. | |
| endHandler | back to summary |
|---|---|
| private Handler<Void> endHandler | |
| eventHandler | back to summary |
|---|---|
| private Handler<Buffer> eventHandler | |
| exceptionHandler | back to summary |
|---|---|
| private Handler<Throwable> exceptionHandler | |
| maxRecordSize | back to summary |
|---|---|
| private int maxRecordSize | |
| parsing | back to summary |
|---|---|
| private boolean parsing | |
| pos | back to summary |
|---|---|
| private int pos | |
| recordSize | back to summary |
|---|---|
| private int recordSize | |
| start | back to summary |
|---|---|
| private int start | |
| stream | back to summary |
|---|---|
| private final ReadStream<Buffer> stream | |
| streamEnded | back to summary |
|---|---|
| private boolean streamEnded | |
| RecordParserImpl | back to summary |
|---|---|
| private RecordParserImpl(ReadStream<Buffer> stream) | |
| delimitedMode | back to summary |
|---|---|
| public void delimitedMode(String delim) Implements io. Flip the parser into delimited mode, and where the delimiter can be represented
by the String This method can be called multiple times with different values of delim while data is being parsed.
| |
| delimitedMode | back to summary |
|---|---|
| public void delimitedMode(Buffer delim) Implements io. References Deprecated
See corresponding docs for further information. Flip the parser into delimited mode, and where the delimiter can be represented
by the delimiter This method can be called multiple times with different values of delim while data is being parsed.
| |
| end | back to summary |
|---|---|
| private void end() | |
| endHandler | back to summary |
|---|---|
| public RecordParser endHandler(Handler<Void> handler) Implements io.
| |
| exceptionHandler | back to summary |
|---|---|
| public RecordParser exceptionHandler(Handler<Throwable> handler) Implements io.
| |
| fetch | back to summary |
|---|---|
| public RecordParser fetch(long amount) Implements io. Doc from io. Fetch the specified
| |
| fixedSizeMode | back to summary |
|---|---|
| public void fixedSizeMode(int size) Implements io. Flip the parser into fixed size mode, where the record size is specified by This method can be called multiple times with different values of size while data is being parsed.
| |
| handle | back to summary |
|---|---|
| public void handle(Buffer buffer) Implements io. References Deprecated
See corresponding docs for further information. This method is called to provide the parser with data.
| |
| handleParsing | back to summary |
|---|---|
| private void handleParsing() | |
| handler | back to summary |
|---|---|
| public RecordParser handler(Handler<Buffer> handler) Implements io.
| |
| latin1StringToBytes | back to summary |
|---|---|
| public static Buffer latin1StringToBytes(String str)
References Deprecated
See corresponding docs for further information. Helper method to convert a latin-1 String to an array of bytes for use as a delimiter Please do not use this for non latin-1 characters | |
| maxRecordSize | back to summary |
|---|---|
| public RecordParser maxRecordSize(int size) Implements io. Set the maximum allowed size for a record when using the delimited mode. The delimiter itself does not count for the record size.
If a record is longer than specified, an
| |
| newDelimited | back to summary |
|---|---|
| public static RecordParser newDelimited(String delim, ReadStream<Buffer> stream, Handler<Buffer> output) Create a new
| |
| newDelimited | back to summary |
|---|---|
| public static RecordParser newDelimited(Buffer delim, ReadStream<Buffer> stream, Handler<Buffer> output)
References Deprecated
See corresponding docs for further information. Create a new
| |
| newFixed | back to summary |
|---|---|
| public static RecordParser newFixed(int size, ReadStream<Buffer> stream, Handler<Buffer> output) Create a new
| |
| parseDelimited | back to summary |
|---|---|
| private int parseDelimited() | |
| parseFixed | back to summary |
|---|---|
| private int parseFixed() | |
| pause | back to summary |
|---|---|
| public RecordParser pause() Implements io. Doc from io. Pause the
While it's paused, no data will be sent to the data
| |
| resume | back to summary |
|---|---|
| public RecordParser resume() Implements io. Doc from io. Resume reading, and sets the buffer in
If the
| |
| setOutput | back to summary |
|---|---|
| public void setOutput(Handler<Buffer> output) Implements io. | |