(lines: string[])
| 198 | |
| 199 | } |
| 200 | private processCSVBody(lines: string[]): ProcessLineResult[] { |
| 201 | if (this.params.output === "line") { |
| 202 | return lines; |
| 203 | } else { |
| 204 | const result = this.rowSplit.parseMultiLines(lines); |
| 205 | this.prependLeftBuf(bufFromString(result.partial)); |
| 206 | if (this.params.output === "csv") { |
| 207 | return result.rowsCells; |
| 208 | } else { |
| 209 | return lineToJson(result.rowsCells, this.converter); |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | // var jsonArr = linesToJson(lines.lines, params, this.recordNum); |
| 214 | // this.processResult(jsonArr); |
| 215 | // this.lastIndex += jsonArr.length; |
| 216 | // this.recordNum += jsonArr.length; |
| 217 | } |
| 218 | |
| 219 | private prependLeftBuf(buf: Buffer) { |
| 220 | if (buf) { |
no test coverage detected