List of utility methods to do Stream Close
void | close(Closeable closeable) Closes a resource stream if the Closeable is not null, any exceptions will be swallowed. if (closeable != null) { try { closeable.close(); } catch (IOException e) { |
void | closeOutputStream(OutputStream os) close Output Stream if (os != null) { try { os.close(); } catch (Exception e) { |
void | closeQuietly(Closeable closeable) close Quietly if (closeable != null) { try { closeable.close(); } catch (IOException ioe) { |
void | closeQuitely(Closeable c) close Quitely if (c == null) return; try { c.close(); } catch (IOException e) { |
void | closeStream(Closeable stream) Closes the specified stream. if (stream != null) { try { stream.close(); } catch (IOException e) { android.util.Log.e(TAG, "Could not close stream", e); |
void | closeStream(Closeable stream) Closes the specified stream. if (stream != null) { try { stream.close(); } catch (IOException e) { Log.e(TAG, "Could not close stream", e); |
void | closeStreams(List close Streams if (streams == null) return; for (Closeable str : streams) { closeQuitely(str); |
void | safeClose(OutputStream os) Close object safely try { if (os != null) os.close(); } catch (Exception e) { e.printStackTrace(); |