Class DisableOnCloseOutputStream
java.lang.Object
java.io.OutputStream
org.apache.nifi.controller.repository.io.DisableOnCloseOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
Wraps an existing OutputStream, so that when
OutputStream.close() is called, the underlying OutputStream is NOT closed but this OutputStream can no longer be written to-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
wrapped
-
closed
private boolean closed
-
-
Constructor Details
-
DisableOnCloseOutputStream
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-