Class NoCloseOutputStream
java.lang.Object
java.io.OutputStream
org.apache.maven.plugins.shade.resource.properties.io.NoCloseOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
Simple output stream replacing close call by a simpe flush.
Useful for output streams nesting streams (like jar output streams) and using a stream encoder.
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
NoCloseOutputStream
-
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-