@Override public void skip(int n) { try { for (int i = 0; i < n; i++) { if (reader.readLine() == null) { break; } } } catch (IOException ioe) { try { close(); } catch (IOException e) { throw new IllegalStateException(e); } } }
@Override public void skip(int n) { try { for (int i = 0; i < n; i++) { if (reader.readLine() == null) { break; } } } catch (IOException ioe) { try { close(); } catch (IOException e) { throw new IllegalStateException(e); } } }
@Override public void skip(int n) { try { for (int i = 0; i < n; i++) { if (reader.readLine() == null) { break; } } } catch (IOException ioe) { try { close(); } catch (IOException e) { throw new IllegalStateException(e); } } }
@Override protected String computeNext() { String line; try { line = reader.readLine(); } catch (IOException ioe) { try { close(); } catch (IOException e) { log.error(e.getMessage(), e); } throw new IllegalStateException(ioe); } return line == null ? endOfData() : line; }
@Override protected String computeNext() { String line; try { line = reader.readLine(); } catch (IOException ioe) { try { close(); } catch (IOException e) { log.error(e.getMessage(), e); } throw new IllegalStateException(ioe); } return line == null ? endOfData() : line; }
@Override protected String computeNext() { String line; try { line = reader.readLine(); } catch (IOException ioe) { try { close(); } catch (IOException e) { log.error(e.getMessage(), e); } throw new IllegalStateException(ioe); } return line == null ? endOfData() : line; }