Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.rgw.compress
Class GLZOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by ch.rgw.compress.GLZOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class GLZOutputStream
extends java.io.OutputStream

Simple und nicht beonders effiziente Implementation eines OutputStreams, der GLZ komprimiert. Schreibt die Daten in einen Puffer, der bei close() komprimiert wird.

Author:
Gerry

Constructor Summary
GLZOutputStream(java.io.OutputStream oo)
           
GLZOutputStream(java.io.OutputStream oo, int sizeHint)
           
 
Method Summary
 void close()
           
 void write(byte[] arg0)
           
 void write(byte[] arg0, int arg1, int arg2)
           
 void write(int arg0)
           
 
Methods inherited from class java.io.OutputStream
flush
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GLZOutputStream

public GLZOutputStream(java.io.OutputStream oo,
                       int sizeHint)

GLZOutputStream

public GLZOutputStream(java.io.OutputStream oo)
Method Detail

write

public void write(byte[] arg0)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream
Throws:
java.io.IOException

write

public void write(byte[] arg0,
                  int arg1,
                  int arg2)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream
Throws:
java.io.IOException

write

public void write(int arg0)
           throws java.io.IOException
Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.OutputStream
Throws:
java.io.IOException

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis