cz.cuni.jagrlib.piece
Class ZLIBCodec.OutStream

java.lang.Object
  extended by java.io.OutputStream
      extended by cz.cuni.jagrlib.piece.ZLIBCodec.OutStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable
Enclosing class:
ZLIBCodec

protected class ZLIBCodec.OutStream
extends java.io.OutputStream

OutputStream proxy (for DeflaterOutputStream).


Constructor Summary
protected ZLIBCodec.OutStream()
           
 
Method Summary
 void write(byte[] b)
          Write whole array of bytes to JaGrLib's BitStream.
 void write(byte[] b, int off, int len)
          Write fragment of byte array to JaGrLib's BitStream.
 void write(int b)
          Write one byte to JaGrLib's BitStream.
 
Methods inherited from class java.io.OutputStream
close, flush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZLIBCodec.OutStream

protected ZLIBCodec.OutStream()
Method Detail

write

public void write(int b)
           throws java.io.IOException
Write one byte to JaGrLib's BitStream.

Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException

write

public void write(byte[] b)
           throws java.io.IOException
Write whole array of bytes to JaGrLib's BitStream.

Overrides:
write in class java.io.OutputStream
Throws:
java.io.IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Write fragment of byte array to JaGrLib's BitStream.

Overrides:
write in class java.io.OutputStream
Throws:
java.io.IOException