List of utility methods to do Stream Close
void | closeQuietly(Object... o) Quietly close all specified input streams, output streams, readers, and writers. for (Object o2 : o) { if (o2 instanceof InputStream) closeQuietly((InputStream) o2); if (o2 instanceof OutputStream) closeQuietly((OutputStream) o2); if (o2 instanceof Reader) closeQuietly((Reader) o2); if (o2 instanceof Writer) ... |
void | closeQuietly(ObjectInput objectInput) Close the specified object input, ignoring any exceptions. try { objectInput.close(); } catch (final Exception e) { |
void | closeQuietly(ObjectInput... objectInputs) Close the specified object input, ignoring any exceptions. for (final ObjectInput objectInput : objectInputs) { try { objectInput.close(); } catch (final Exception e) { |
void | closeQuietly(Reader input) Unconditionally closes an the Reader provided. if (input != null) { try { input.close(); } catch (Exception e) { |
void | closeQuietly(Reader r) close Quietly try { r.close(); } catch (IOException e) { |
void | closeQuietly(Reader reader) close Quietly try { if (reader != null) { reader.close(); } catch (IOException e) { e.printStackTrace(); |
void | closeQuietly(Writer writer) close Quietly closeQuietly((Closeable) writer); |
void | closeQuietly(ZipFile closeable) close Quietly try { if (closeable != null) closeable.close(); } catch (Exception e) { |
boolean | closeQuietlyWithResult(InputStream sourceInput, boolean suppressionSourceExists) Close input. boolean closed = suppressionSourceExists; if (sourceInput != null) { try { sourceInput.close(); } catch (IOException ignored) { closed = false; return closed; |
void | closeRandomAccessFile() close Random Access File if (randomAccessFile != null) { try { randomAccessFile.close(); } catch (IOException e) { new IOException(e.getMessage()); |