Package org.apache.juneau.internal
Class NoCloseOutputStream
java.lang.Object
java.io.OutputStream
org.apache.juneau.internal.NoCloseOutputStream
- All Implemented Interfaces:
- Closeable,- Flushable,- AutoCloseable
Wraps an existing 
OutputStream where the close() method is a no-op.
 Useful in cases where you're working with streams that should not be implicitly closed.
See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class java.io.OutputStreamnullOutputStream
- 
Constructor Details- 
NoCloseOutputStreamConstructor.- Parameters:
- os- The output stream to wrap.
 
 
- 
- 
Method Details- 
write- Specified by:
- writein class- OutputStream
- Throws:
- IOException
 
- 
write- Overrides:
- writein class- OutputStream
- Throws:
- IOException
 
- 
write- Overrides:
- writein class- OutputStream
- Throws:
- IOException
 
- 
flush- Specified by:
- flushin interface- Flushable
- Overrides:
- flushin class- OutputStream
- Throws:
- IOException
 
- 
close- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- OutputStream
- Throws:
- IOException
 
 
-