Package org.bouncycastle.apache.bzip2
Class CBZip2OutputStream
java.lang.Object
java.io.OutputStream
org.bouncycastle.apache.bzip2.CBZip2OutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable,BZip2Constants
An output stream that compresses into the BZip2 format (with the file
header chars) into another stream.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intFields inherited from interface org.bouncycastle.apache.bzip2.BZip2Constants
baseBlockSize, G_SIZE, MAX_ALPHA_SIZE, MAX_CODE_LEN, MAX_CODE_LEN_GEN, MAX_SELECTORS, N_GROUPS, N_ITERS, NUM_OVERSHOOT_BYTES, RUNA, RUNB -
Constructor Summary
ConstructorsConstructorDescriptionCBZip2OutputStream(OutputStream outStream) CBZip2OutputStream(OutputStream outStream, int blockSize) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidfinish()voidflush()protected static voidhbMakeCodeLengths(byte[] len, int[] freq, int alphaSize, int maxLen) voidwrite(int bv) modified by Oliver Merkel, 010128Methods inherited from class java.io.OutputStream
nullOutputStream, write, write
-
Field Details
-
SETMASK
protected static final int SETMASK- See Also:
-
CLEARMASK
protected static final int CLEARMASK- See Also:
-
GREATER_ICOST
protected static final int GREATER_ICOST- See Also:
-
LESSER_ICOST
protected static final int LESSER_ICOST- See Also:
-
SMALL_THRESH
protected static final int SMALL_THRESH- See Also:
-
DEPTH_THRESH
protected static final int DEPTH_THRESH- See Also:
-
-
Constructor Details
-
CBZip2OutputStream
- Throws:
IOException
-
CBZip2OutputStream
- Throws:
IOException
-
-
Method Details
-
hbMakeCodeLengths
protected static void hbMakeCodeLengths(byte[] len, int[] freq, int alphaSize, int maxLen) -
write
modified by Oliver Merkel, 010128- Specified by:
writein classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
finish
- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-