# Module: vertx-js/record_parser

## vertx-js/record_parser

Source:
  - record_parser.js, line 3

### Classes

RecordParser

### Methods

#### <static> RecordParser.newDelimited(delim, output) → {RecordParser}

  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:

  Name | Type | Description
  --- | --- | ---
  `delim` | Buffer | the initial delimiter buffer
  `output` | function | handler that will receive the output

  Source:
    - record_parser.js, line 113

  ##### 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 the `size` 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:
    - record_parser.js, line 137

  ##### Returns:

  Type
    RecordParser