Class CBZip2OutputStream
java.lang.Object
java.io.OutputStream
ecmwf.common.compression.bzip2a.CBZip2OutputStream
- All Implemented Interfaces:
BZip2Constants
,Closeable
,Flushable
,AutoCloseable
The Class CBZip2OutputStream.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final int
The Constant CLEARMASK.protected static final int
The Constant DEPTH_THRESH.protected static final int
The Constant GREATER_ICOST.protected static final int
The Constant LESSER_ICOST.protected static final int
The Constant SETMASK.protected static final int
The Constant SMALL_THRESH.Fields inherited from interface ecmwf.common.compression.bzip2a.BZip2Constants
baseBlockSize, G_SIZE, MAX_ALPHA_SIZE, MAX_CODE_LEN, MAX_SELECTORS, N_GROUPS, N_ITERS, NUM_OVERSHOOT_BYTES, rNums, RUNA, RUNB
-
Constructor Summary
ConstructorsConstructorDescriptionCBZip2OutputStream
(OutputStream inStream) Instantiates a new CB zip 2 output stream.CBZip2OutputStream
(OutputStream inStream, int inBlockSize) Instantiates a new CB zip 2 output stream. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close.protected void
finalize()
Finalize.void
flush()
Flush.protected static void
hbMakeCodeLengths
(char[] len, int[] freq, int alphaSize, int maxLen) Hb make code lengths.void
write
(int bv) modified by Oliver Merkel, 010128.Methods inherited from class java.io.OutputStream
nullOutputStream, write, write
-
Field Details
-
SETMASK
protected static final int SETMASKThe Constant SETMASK.- See Also:
-
CLEARMASK
protected static final int CLEARMASKThe Constant CLEARMASK.- See Also:
-
GREATER_ICOST
protected static final int GREATER_ICOSTThe Constant GREATER_ICOST.- See Also:
-
LESSER_ICOST
protected static final int LESSER_ICOSTThe Constant LESSER_ICOST.- See Also:
-
SMALL_THRESH
protected static final int SMALL_THRESHThe Constant SMALL_THRESH.- See Also:
-
DEPTH_THRESH
protected static final int DEPTH_THRESHThe Constant DEPTH_THRESH.- See Also:
-
-
Constructor Details
-
CBZip2OutputStream
Instantiates a new CB zip 2 output stream.- Parameters:
inStream
- the in stream- Throws:
IOException
- Signals that an I/O exception has occurred.
-
CBZip2OutputStream
Instantiates a new CB zip 2 output stream.- Parameters:
inStream
- the in streaminBlockSize
- the in block size- Throws:
IOException
- Signals that an I/O exception has occurred.
-
-
Method Details
-
hbMakeCodeLengths
protected static void hbMakeCodeLengths(char[] len, int[] freq, int alphaSize, int maxLen) Hb make code lengths.- Parameters:
len
- the lenfreq
- the freqalphaSize
- the alpha sizemaxLen
- the max len
-
write
modified by Oliver Merkel, 010128.- Specified by:
write
in classOutputStream
- Throws:
IOException
-
finalize
-
close
Close.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
flush
Flush.- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-