Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 1x 123x 123x 123x 1x | import { Converter } from "./Converter"; import P from "bluebird"; import { JSONResult } from "./lineToJson"; import { CSVParseParam } from "./Parameters"; import { ParseRuntime } from "./ParseRuntime"; export abstract class Processor { protected params: CSVParseParam; protected runtime: ParseRuntime; constructor(protected converter: Converter) { this.params = converter.parseParam; this.runtime = converter.parseRuntime; } abstract process(chunk: Buffer,finalChunk?:boolean): P<ProcessLineResult[]> abstract destroy():P<void>; abstract flush(): P<ProcessLineResult[]>; } export type ProcessLineResult = string | string[] | JSONResult; |