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
Modifier and TypeFieldDescriptionprotected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
Fields 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
ConstructorDescriptionCBZip2OutputStream
(OutputStream outStream) CBZip2OutputStream
(OutputStream outStream, int blockSize) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
finish()
void
flush()
protected static void
hbMakeCodeLengths
(byte[] len, int[] freq, int alphaSize, int maxLen) void
write
(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:
write
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
finish
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-