List of utility methods to do Stream Close
void | closeInputStream(InputStream inp) close Input Stream if (inp != null) try { inp.close(); } catch (IOException e) { |
void | closeInputStream(InputStream inputStream) close Input Stream inputStream.close(); |
void | closeInputStream(InputStream inputStream) close Input Stream try { if (inputStream != null) { inputStream.close(); } catch (IOException e) { throw new RuntimeException("Unable to close file input stream.", e); |
void | closeInputStream(InputStream stream) close Input Stream if (stream != null) { try { stream.close(); } catch (IOException ex) { ex.printStackTrace(); } catch (Throwable ex) { ex.printStackTrace(); |
void | closeJMXConnection() close JMX Connection if (jmxc != null) { try { jmxc.close(); jmxc = null; } catch (IOException e) { e.printStackTrace(); connectNumber--; |
void | closeKeyMap(BufferedReader in) close Key Map if (in != null)
in.close();
|
void | closeLog() close Log try { if (fw != null) { fw.close(); } catch (IOException e) { e.printStackTrace(); System.err.println("NwtUtil.closeLog"); ... |
void | closeLog() Close the PrintWriter on the log file, if it's open if (mLogPrintWriter != null)
mLogPrintWriter.close();
|
void | closeLog() close Log if (logOut != null)
logOut.close();
logOut = null;
|
void | closeNoException(Closeable... closeables) close No Exception if (closeables != null) { for (Closeable cl : closeables) { try { if (cl instanceof Flushable) { flushNoException((Flushable) cl); cl.close(); } catch (Exception ioe) { ... |