@Test(expected = IOException.class) public void throwsExceptionOnParseError() throws Exception { String inputString = "<http: ByteArrayInputStream inputStream = new ByteArrayInputStream(inputString.getBytes()); NTuplesParser parser = new NTuplesParser(new InputStreamReader(inputStream), new ParserConfig()); try { while (parser.hasNext()) { parser.next(); } } finally { parser.close(); } }
@Override public void close() throws IOException { if (internalParser != null) { internalParser.close(); } }
NTuplesParser extends ThrowingAbstractIterator<List<Value>, IOException> implements Closeable<IOException> { @Override public void close() throws IOException { if (internalParser != null) { internalParser.close(); } } }
NTuplesParser extends ThrowingAbstractIterator<List<Value>, IOException> implements Closeable<IOException> { @Override public void close() throws IOException { if (internalParser != null) { internalParser.close(); } } NTuplesParser(Reader inputReader, ParserConfig parserConfig); }
NTuplesParser extends ThrowingAbstractIterator<List<Value>, IOException> implements Closeable<IOException> { @Override public void close() throws IOException { if (internalParser != null) { internalParser.close(); } } NTuplesParser(Reader inputReader, ParserConfig parserConfig); @Override void close(); }
NTuplesParser extends ThrowingAbstractIterator<List<Value>, IOException> implements Closeable<IOException> { @Override public void close() throws IOException { if (internalParser != null) { internalParser.close(); } } NTuplesParser(Reader inputReader, ParserConfig parserConfig); @Override void close();  }