@Override public void close() throws IOException { if (closed.compareAndSet(false, true)) { try { originalStream.close(); } catch (IOException e) { handleIOException(e); } finally { fs.unregisterOutputStream(this); } } }
@Override public void close() throws IOException { if (closed.compareAndSet(false, true)) { try { originalStream.close(); } catch (IOException e) { handleIOException(e); } finally { fs.unregisterOutputStream(this); } } }
@Override public void close() throws IOException { if (closed.compareAndSet(false, true)) { try { originalStream.close(); } catch (IOException e) { handleIOException(e); } finally { fs.unregisterOutputStream(this); } } }