List of utility methods to do Stream Close
void | closeQuietly(InputStream input) Closes InputStream while catching any exceptions try { input.close(); } catch (IOException ex) { |
void | closeQuietly(InputStream input) Unconditionally close an InputStream .
try { if (input != null) { input.close(); } catch (IOException ioe) { |
void | closeQuietly(InputStream input) close Quietly if (input == null) { return; try { input.close(); } catch (IOException ioe) { |
void | closeQuietly(InputStream input) close Quietly closeQuietly((Closeable) input); |
void | closeQuietly(InputStream input) close Quietly closeQuietly((Closeable) input); |
void | closeQuietly(InputStream inputstream) Closes an input stream quietly (i.e. try { close(inputstream); } catch (IOException e) { |
void | closeQuietly(InputStream is) Close a possibly-null InputStream and swallow any resulting IOException. if (is == null) { return; try { is.close(); } catch (IOException ioe) { |
void | closeQuietly(InputStream is) Performs the same function as the commons io version but also performs logging of streams which threw an exception when trying to close them and logs them at error level close(is); |
void | closeQuietly(InputStream is) close Quietly try { if (is != null) is.close(); } catch (IOException ignored) { |
void | closeQuietly(InputStream is) close Quietly try { if (is != null) { is.close(); } catch (Exception e) { e.printStackTrace(); |