org.freehep.util.io
Class FlateOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- java.util.zip.DeflaterOutputStream
-
- org.freehep.util.io.FlateOutputStream
-
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable, FinishableOutputStream
public class FlateOutputStream extends java.util.zip.DeflaterOutputStream implements FinishableOutputStream
The FlateOutputStream uses the Deflate mechanism to compress data. The exact definition of Deflate encoding can be found in the PostScript Language Reference (3rd ed.) chapter 3.13.3.
-
-
Constructor Summary
Constructors Constructor and Description FlateOutputStream(java.io.OutputStream out)Creates a (In-)Flate output stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidfinish()Finishes the current outputstream (compresses, flushes, caluclates CRC) and writes whatever is left in the buffers, but does not close the stream.
-
-
-
Constructor Detail
-
FlateOutputStream
public FlateOutputStream(java.io.OutputStream out)
Creates a (In-)Flate output stream.- Parameters:
out- stream to write to
-
-
Method Detail
-
finish
public void finish() throws java.io.IOExceptionDescription copied from interface:FinishableOutputStreamFinishes the current outputstream (compresses, flushes, caluclates CRC) and writes whatever is left in the buffers, but does not close the stream.- Specified by:
finishin interfaceFinishableOutputStream- Overrides:
finishin classjava.util.zip.DeflaterOutputStream- Throws:
java.io.IOException- if write fails
-
-
DMelt 3.0 © DataMelt by jWork.ORG