Package net.shibboleth.shared.io
Class NoWrapAutoEndDeflaterOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.util.zip.DeflaterOutputStream
net.shibboleth.shared.io.NoWrapAutoEndDeflaterOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
A subclass of
DeflaterOutputStream which defaults in a no-wrap Deflater instance and
closes it when the stream is closed.-
Field Summary
Fields inherited from class java.util.zip.DeflaterOutputStream
buf, defFields inherited from class java.io.FilterOutputStream
out -
Constructor Summary
ConstructorsConstructorDescriptionNoWrapAutoEndDeflaterOutputStream(OutputStream os, int level) Creates a new output stream with a default no-wrap compressor and buffer size, and the specified compression level. -
Method Summary
Methods inherited from class java.util.zip.DeflaterOutputStream
deflate, finish, flush, write, writeMethods inherited from class java.io.FilterOutputStream
writeMethods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
NoWrapAutoEndDeflaterOutputStream
Creates a new output stream with a default no-wrap compressor and buffer size, and the specified compression level.- Parameters:
os- the output streamlevel- the compression level (0-9)
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classDeflaterOutputStream- Throws:
IOException
-