Elexis API documentation
Version 2.1.6 as of January 22 2012

org.apache.commons.compress.bzip2
Class CBZip2OutputStream

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

public class CBZip2OutputStream
extends java.io.OutputStream

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

Author:
Keiron Liddle

Field Summary
static int BASE_BLOCK_SIZE
           
static int G_SIZE
           
static int MAX_ALPHA_SIZE
           
static int MAX_CODE_LEN
           
static int MAX_SELECTORS
           
static int N_GROUPS
           
static int N_ITERS
           
static int NUM_OVERSHOOT_BYTES
           
static int[] RAND_NUMS
           
static int RUNA
           
static int RUNB
           
 
Constructor Summary
CBZip2OutputStream(java.io.OutputStream output)
           
CBZip2OutputStream(java.io.OutputStream output, int blockSize)
           
 
Method Summary
 void close()
           
 void finalize()
           
 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
 

Field Detail

BASE_BLOCK_SIZE

public static final int BASE_BLOCK_SIZE
See Also:
Constant Field Values

MAX_ALPHA_SIZE

public static final int MAX_ALPHA_SIZE
See Also:
Constant Field Values

MAX_CODE_LEN

public static final int MAX_CODE_LEN
See Also:
Constant Field Values

RUNA

public static final int RUNA
See Also:
Constant Field Values

RUNB

public static final int RUNB
See Also:
Constant Field Values

N_GROUPS

public static final int N_GROUPS
See Also:
Constant Field Values

G_SIZE

public static final int G_SIZE
See Also:
Constant Field Values

N_ITERS

public static final int N_ITERS
See Also:
Constant Field Values

MAX_SELECTORS

public static final int MAX_SELECTORS
See Also:
Constant Field Values

NUM_OVERSHOOT_BYTES

public static final int NUM_OVERSHOOT_BYTES
See Also:
Constant Field Values

RAND_NUMS

public static final int[] RAND_NUMS
Constructor Detail

CBZip2OutputStream

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

CBZip2OutputStream

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

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

finalize

public void finalize()
              throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

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

write

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

Specified by:
write in class java.io.OutputStream
Parameters:
bv - Description of Parameter
Throws:
java.io.IOException - Description of Exception

Elexis API documentation
Version 2.1.6 as of January 22 2012

Copyright 2005-2011 by Gerry Weirich, Elexis