Class: RecordParser

vertx/parse_tools. RecordParser

new RecordParser(parser)

Parameters:
Name Type Description
parser
Source:

Methods

call(the, buffer)

Allows a Parser to be provided to a {vertx/streams~ReadStream}'s dataHandler function.
Parameters:
Name Type Description
the value for 'this'
buffer vertx/buffer.Buffer
Source:

delimitedMode(delim)

Flip the parser into delimited mode, and where the delimiter can be represented by the String delim encoded in latin-1 . Don't use this if your String contains other than latin-1 characters.

This method can be called multiple times with different values of delim while data is being parsed.

Parameters:
Name Type Description
delim
Source:

fixedSizeMode(size)

/** Flip the parser into fixed size mode, where the record size is specified by size in bytes.

This method can be called multiple times with different values of size while data is being parsed.

Parameters:
Name Type Description
size number
Source: