org.apache.tools.bzip2
Class CBZip2OutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.apache.tools.bzip2.CBZip2OutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, BZip2Constants

public class CBZip2OutputStream
extends java.io.OutputStream
implements BZip2Constants

An output stream that compresses into the BZip2 format (without the file header chars) into another stream. TODO: Update to BZip2 1.0.1


Field Summary
 
Fields inherited from interface org.apache.tools.bzip2.BZip2Constants
baseBlockSize, G_SIZE, MAX_ALPHA_SIZE, MAX_CODE_LEN, MAX_SELECTORS, N_GROUPS, N_ITERS, NUM_OVERSHOOT_BYTES, rNums, RUNA, RUNB
 
Constructor Summary
CBZip2OutputStream(java.io.OutputStream inStream)
           
CBZip2OutputStream(java.io.OutputStream inStream, int inBlockSize)
           
 
Method Summary
 void close()
           
 void flush()
           
 void write(int bv)
          modified by Oliver Merkel, 010128
 
Methods inherited from class java.io.OutputStream
write, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CBZip2OutputStream

public CBZip2OutputStream(java.io.OutputStream inStream)
                   throws java.io.IOException
Throws:
java.io.IOException

CBZip2OutputStream

public CBZip2OutputStream(java.io.OutputStream inStream,
                          int inBlockSize)
                   throws java.io.IOException
Throws:
java.io.IOException
Method Detail

write

public void write(int bv)
           throws java.io.IOException
modified by Oliver Merkel, 010128

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

flush

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