155156157158159160161162
*/ public List<Map<String, String>> parseLines(InputStream in) { try (Reader reader = new InputStreamReader(in)) { return this.parseLines(reader); } catch (IOException e) { throw new LTSVIOException(e); } }
167168169170171172173174
*/ public List<Map<String, String>> parseLines(File file) { try (FileReader reader = new FileReader(file)) { return this.parseLines(reader); } catch (IOException e) { throw new LTSVIOException(e); } }
190191192193194195196197
String charsetName) { try (Reader reader = new InputStreamReader( new FileInputStream(filePath), charsetName)) { return this.parseLines(reader); } catch (IOException e) { throw new LTSVIOException(e); } }
281282283284285286287288
public LTSVIterator iterator(String filePath, String charsetName) { try { return iterator(new InputStreamReader( new FileInputStream(filePath), charsetName)); } catch (IOException e) { throw new LTSVIOException(e); } }
7273747576777879
String charsetName) { try (Writer writer = new OutputStreamWriter(new FileOutputStream( filepath), charsetName)) { this.formatLines(lines, writer); } catch (IOException e) { throw new LTSVIOException(e); } }
8485868788899091
*/ public void formatLines(List<Map<String, String>> lines, File file) { try (FileWriter writer = new FileWriter(file)) { this.formatLines(lines, writer); } catch (IOException e) { throw new LTSVIOException(e); } }
979899100101102103104
public void formatLines(List<Map<String, String>> lines, OutputStream outputStream) { try (Writer writer = new OutputStreamWriter(outputStream)) { this.formatLines(lines, writer); } catch (IOException e) { throw new LTSVIOException(e); } }
49505152535455565758
if (!isClosed.getAndSet(true)) { synchronized (bufferedReader) { try { bufferedReader.close(); } catch (IOException e) { throw new LTSVIOException(e); } } } }
737475767778798081
Map<String, String> next = parser.parseLine(line); nextQueue.add(next); } return hasNext; } catch (IOException e) { throw new LTSVIOException(e); } } }
919293949596979899
} else { next = nextQueue.poll(); } return next; } catch (IOException e) { throw new LTSVIOException(e); } } }