org.freehep.util.io
Class FlateOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by java.util.zip.DeflaterOutputStream
              extended by 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

Field Summary
 
Fields inherited from class java.util.zip.DeflaterOutputStream
buf, def
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
FlateOutputStream(OutputStream out)
          Creates a (In-)Flate output stream.
 
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.util.zip.DeflaterOutputStream
close, deflate, write, write
 
Methods inherited from class java.io.FilterOutputStream
flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlateOutputStream

public FlateOutputStream(OutputStream out)
Creates a (In-)Flate output stream.

Parameters:
out - stream to write to
Method Detail

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.