ch.rgw.compress
Class GLZOutputStream
java.lang.Object
java.io.OutputStream
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
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 |
GLZOutputStream
public GLZOutputStream(java.io.OutputStream oo,
int sizeHint)
GLZOutputStream
public GLZOutputStream(java.io.OutputStream oo)
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
Copyright 2005-2011 by Gerry Weirich, Elexis