List of utility methods to do Stream Close
void | closeQuietly(final InputStream in) close Quietly if (in != null) { try { in.close(); } catch (IOException ioe) { |
void | closeQuietly(final InputStream inputStream) Closes the InputStream if it is not null, swallowing any exceptions. if (inputStream != null) { try { inputStream.close(); } catch (IOException e) { |
boolean | closeQuietly(final Reader reader) close Quietly if (reader != null) { try { reader.close(); return true; } catch (final Exception ex) { return false; return false; |
void | closeQuietly(final ZipFile... zipFiles) Quietly closes each of the given ZipFile s, i.e. for (final ZipFile zipFile : zipFiles) { if (zipFile != null) { try { zipFile.close(); } catch (IOException e) { |
void | closeQuietly(ImageInputStream ins) close Quietly if (ins != null) { try { ins.close(); } catch (IOException e) { e.printStackTrace(); |
void | closeQuietly(ImageReader iReader) Unconditionally close the desired ImageReader . if (iReader == null) return; try { iReader.dispose(); } catch (Exception e) { |
void | closeQuietly(InputStream c) close Quietly try { c.close(); } catch (Exception e) { |
void | closeQuietly(InputStream in) Method that will close an InputStream ignoring it if it is null and ignoring exceptions. if (in != null) { try { in.close(); } catch (IOException e) { |
void | closeQuietly(InputStream in) Close a stream try { if (in != null) in.close(); } catch (Throwable t) { System.out.println("[WARN] Unable to close input (e=" + t + ")"); |
void | closeQuietly(InputStream input) Unconditionally close an InputStream .
try { if (input != null) { input.close(); } catch (IOException ioe) { |