List of utility methods to do Stream Close
void | close(Appendable output) Close if possible if (output instanceof Closeable) ((Closeable) output).close(); |
Appendable | close(Appendable sb, String comp) _more_ try { sb.append("</"); sb.append(comp); sb.append(">"); } catch (IOException ioe) { throw new RuntimeException(ioe); return sb; ... |
void | close(BufferedReader br) close br.close(); |
void | close(BufferedReader br) Close. if (br == null) { return; try { br.close(); } catch (IOException e) { throw e; |
void | close(BufferedWriter bufferedWriter) close try { if (bufferedWriter != null) { bufferedWriter.flush(); bufferedWriter.close(); } catch (IOException e) { |
void | close(ClassLoader cl) close if (cl instanceof Closeable) { ((Closeable) cl).close(); |
void | close(Closeable bufferedInputStream) close if (bufferedInputStream != null) { try { bufferedInputStream.close(); } catch (IOException e) { e.printStackTrace(); |
void | close(Closeable closeable, boolean ignoreException) close if (closeable == null) { return; try { closeable.close(); } catch (IOException e) { if (ignoreException == false) { throw new UncheckedIOException(e); ... |
void | close(Closeable closeable, boolean swallowIOException) close if (closeable != null) { try { closeable.close(); } catch (IOException e) { if (!swallowIOException) { throw e; |
void | close(Closeable closeable, Logger logger) close if (closeable == null) { return; try { closeable.close(); } catch (IOException e) { logger.error("Error closing closeable", e); |