List of utility methods to do InputStream Close
void | close(InputStream is) close if (is == null) { return; try { is.close(); } catch (IOException e) { throw new IllegalStateException(e); |
void | close(InputStream is) close if (is == null) { return; try { is.close(); } catch (Exception e) { System.err.println("can't close InputStream: " + e); |
void | close(InputStream is) close if (is != null) { try { is.close(); } catch (IOException e) { |
void | close(InputStream is) close is.close(); |
void | close(InputStream is) close try { if (is != null) is.close(); } catch (IOException e) { e.printStackTrace(); |
void | close(InputStream is, boolean success) close try { is.close(); } catch (IOException e) { if (success) { throw new RuntimeException(e); e.printStackTrace(); |
void | close(InputStream is, OutputStream os) close if (is != null) try { is.close(); } catch (IOException e) { if (os != null) try { os.close(); ... |
void | forceClose(Closeable stream) force Close if (stream != null) { try { stream.close(); } catch (Throwable t) { |
void | forceClosed(InputStream stream) force Closed if (stream != null) { try { stream.close(); } catch (IOException e) { |