- Source:
Classes
Methods
-
<static> RecordParser.newDelimited(delim, output) → {RecordParser}
-
Create a new
RecordParser
instance, initially in delimited mode, and where the delimiter can be represented by theBuffer
delim.output
Will receive whole records which have been parsed.Parameters:
Name Type Description delim
Buffer the initial delimiter buffer output
function handler that will receive the output - Source:
Returns:
- Type
- RecordParser
-
<static> RecordParser.newFixed(size, output) → {RecordParser}
-
Create a new
RecordParser
instance, initially in fixed size mode, and where the record size is specified by thesize
parameter.output
Will receive whole records which have been parsed.Parameters:
Name Type Description size
number the initial record size output
function handler that will receive the output - Source:
Returns:
- Type
- RecordParser