org.apache.commons.compress.compressors.bzip2
Class BZip2OutputStream
java.lang.Object
java.io.OutputStream
org.apache.commons.compress.compressors.bzip2.BZip2OutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class BZip2OutputStream
- extends 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
Method Summary |
void |
close()
|
protected void |
finalize()
|
void |
flush()
|
void |
write(int bv)
modified by Oliver Merkel, 010128 |
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
BZip2OutputStream
public BZip2OutputStream(OutputStream output)
throws IOException
- Throws:
IOException
BZip2OutputStream
public BZip2OutputStream(OutputStream output,
int blockSize)
throws IOException
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class OutputStream
- Throws:
IOException
finalize
protected void finalize()
throws Throwable
- Overrides:
finalize
in class Object
- Throws:
Throwable
flush
public void flush()
throws IOException
- Specified by:
flush
in interface Flushable
- Overrides:
flush
in class OutputStream
- Throws:
IOException
write
public void write(int bv)
throws IOException
- modified by Oliver Merkel, 010128
- Specified by:
write
in class OutputStream
- Parameters:
bv
- Description of Parameter
- Throws:
IOException
- Description of Exception
Copyright © 2011 Apache Software Foundation. All Rights Reserved.