Inherited Attributes
Attributes inherited from: Object
hash, string
Methods
newDelimitedshared RecordParser newDelimited(Buffer delim, Anything(Buffer) output)

Create a new RecordParser instance, initially in delimited mode, and where the delimiter can be represented by the Buffer delim.

output Will receive whole records which have been parsed.

Parameters:
  • delim

    the initial delimiter buffer

  • output

    handler that will receive the output

newDelimitedshared RecordParser newDelimited(String delim, Anything(Buffer) output)

Create a new RecordParser instance, initially in delimited mode, and where the delimiter can be represented by the String delim endcoded in latin-1 . Don't use this if your String contains other than latin-1 characters.

output Will receive whole records which have been parsed.

Parameters:
  • delim

    the initial delimiter string

  • output

    handler that will receive the output

newFixedshared RecordParser newFixed(Integer size, Anything(Buffer) output)

Create a new RecordParser instance, initially in fixed size mode, and where the record size is specified by the size parameter.

output Will receive whole records which have been parsed.

Parameters:
  • size

    the initial record size

  • output

    handler that will receive the output

Inherited Methods
Methods inherited from: Object
equals