List of utility methods to do InputStream Close
void | close(InputStream in, boolean silent) close if (in != null) { try { in.close(); } catch (IOException e) { if (!silent) { throw new RuntimeException(e); |
void | close(InputStream in, OutputStream out) close try { if (in != null) { in.close(); if (out != null) { out.close(); } catch (IOException e) { ... |
boolean | close(InputStream input) Unconditionally close an InputStream .
if (null == input) return false; try { input.close(); return true; } catch (IOException ioe) { return false; |
void | close(InputStream inputStream) close if (inputStream != null) {
inputStream.close();
|
void | close(InputStream inputstream) Closes an input stream while inspecting its class. if (inputstream != null) { String inputstreamClassName = inputstream.getClass().getName(); if (!inputstreamClassName.startsWith("sun.net.www.protocol.jar.JarURLConnection")) { inputstream.close(); |
void | close(InputStream inputStream) close try { inputStream.close(); } catch (IOException ioe) { throw new RuntimeException("Failed to close input stream.", ioe); |
void | close(InputStream is) Close an InputStream if (is != null) { try { is.close(); } catch (Exception ex) { |
void | close(InputStream is) Close the input stream and trap any exceptions. if (is != null) { try { is.close(); } catch (Exception ex) { |
void | close(InputStream is) Closes an input stream ignoring any errors. if (is == null) return; try { is.close(); } catch (IOException ignoreEx) { |
void | close(InputStream is) close try { if (is != null) is.close(); } catch (Throwable t) { |