RecordBuilder
Progressively builds warc records by consuming the file line by line
Constructor Summary
Public Constructor | ||
public |
Create a new RecordBuilder |
Member Summary
Private Members | ||
private |
|
|
private |
|
Method Summary
Public Methods | ||
public |
Returns a new WARC record if one can be created otherwise returns null |
|
public |
consumeLine(line: Buffer): WARCRecord Consumes a line of a WARC file. |
Public Constructors
Private Members
private _parsingState: * source
Public Methods
public buildRecord(): WARCRecord source
Returns a new WARC record if one can be created otherwise returns null
public consumeLine(line: Buffer): WARCRecord source
Consumes a line of a WARC file. If a record can be built this function returns a new WARCRecord otherwise null
Params:
Name | Type | Attribute | Description |
line | Buffer | The line to be consumed |