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:
- Closeable, Flushable, FinishableOutputStream
public class FlateOutputStream
- extends 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.
- Version:
- $Id: FlateOutputStream.java 8584 2006-08-10 23:06:37Z duns $
- Author:
- Mark Donszelmann
Method Summary |
void |
finish()
Finishes the current outputstream (compresses, flushes, caluclates CRC)
and writes whatever is left in the buffers, but does not close the
stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlateOutputStream
public FlateOutputStream(OutputStream out)
- Creates a (In-)Flate output stream.
- Parameters:
out
- stream to write to
finish
public void finish()
throws IOException
- Description copied from interface:
FinishableOutputStream
- Finishes the current outputstream (compresses, flushes, caluclates CRC)
and writes whatever is left in the buffers, but does not close the
stream.
- Specified by:
finish
in interface FinishableOutputStream
- Overrides:
finish
in class DeflaterOutputStream
- Throws:
IOException
- if write fails
Copyright © 2000-2007 FreeHEP. All Rights Reserved.