@Override public void close() { IO.close(bw) ; }
@Override public void read(InputStream in, String baseURI, ContentType ct, StreamRDF output, Context context) { IO.close(in); }
@Override protected void closeIterator() { IO.close(input); input = null; }
@Override protected void closeIterator() { IO.close(reader); reader = null; }
@Override protected void closeIterator() { IO.close(input); input = null; }
@Override protected void closeIterator() { IO.close(reader) ; reader = null; }
@Override public void read(Reader reader, String baseURI, ContentType ct, StreamRDF output, Context context) { IO.close(reader); } }
@Override public void close() { IO.close(bw) ; }
@Override public void close() { IO.close(reader); }
@Override public void closeStream() { IO.close(input) ; }
@Override public void closeStream() { IO.close(input) ; }
@Override protected void closeIterator() { IO.close(reader) ; reader = null; }
@Override public void close() { flushBuffer() ; IO.close(out) ; }
@Override public void close() { flushBuffer() ; IO.close(out) ; }
@Override public void close() { IO.close(getReader()) ; }
@Override public void close() { flushBuffer() ; IO.close(out) ; }
/** Set the HttpClient - close the old one if appropriate */ public static void setHttpClient(HttpClient newHttpClient) { HttpClient hc = HttpOp.getDefaultHttpClient() ; if ( hc instanceof CloseableHttpClient ) IO.close((CloseableHttpClient)hc) ; HttpOp.setDefaultHttpClient(newHttpClient) ; }
/** Set the HttpClient - close the old one if appropriate */ public static void setHttpClient(HttpClient newHttpClient) { HttpClient hc = HttpOp.getDefaultHttpClient() ; if ( hc instanceof CloseableHttpClient ) IO.close((CloseableHttpClient)hc) ; HttpOp.setDefaultHttpClient(newHttpClient) ; }
/** Set the HttpClient - close the old one if appropriate */ public static void setHttpClient(HttpClient newHttpClient) { HttpClient hc = HttpOp.getDefaultHttpClient() ; if ( hc instanceof CloseableHttpClient ) IO.close((CloseableHttpClient)hc) ; HttpOp.setDefaultHttpClient(newHttpClient) ; }
private static void open(StreamManager streamMgr, String dataName, Context context) { StreamManager.setGlobal(streamMgr) ; try { TypedInputStream in = ( context != null ) ? RDFDataMgr.open(dataName, context) : RDFDataMgr.open(dataName) ; assertNotNull(in) ; IO.close(in) ; } finally { StreamManager.setGlobal(streamMgrStd) ; } }