# Module: vertx-js/record_parser

### Classes

RecordParser

### Methods

#### (static) RecordParser.newDelimited(delim, stream) → {RecordParser}

Like RecordParser#newDelimited but wraps the `stream`. The `stream` handlers will be set/unset when the RecordParser#handler is set.

The `pause()`/`resume()` operations are propagated to the `stream`.

##### Parameters:

Name | Type | Description
--- | --- | ---
`delim` | Buffer | the initial delimiter buffer
`stream` | ReadStream | the wrapped stream

Source:
  - vertx-js/record_parser.js, line 208

##### Returns:

Type
  RecordParser

#### (static) RecordParser.newFixed(size, stream) → {RecordParser}

Like RecordParser#newFixed but wraps the `stream`. The `stream` handlers will be set/unset when the RecordParser#handler is set.

The `pause()`/`resume()` operations are propagated to the `stream`.

##### Parameters:

Name | Type | Description
--- | --- | ---
`size` | number | the initial record size
`stream` | ReadStream | the wrapped stream

Source:
  - vertx-js/record_parser.js, line 240

##### Returns:

Type
  RecordParser