Class SegmentHeader
java.lang.Object
org.apache.commons.compress.harmony.pack200.BandSet
org.apache.commons.compress.harmony.pack200.SegmentHeader
SegmentHeader is the header band of a
Segment
. Corresponds to segment_header
in the pack200 specification.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.commons.compress.harmony.pack200.BandSet
BandSet.BandAnalysisResults, BandSet.BandData
-
Field Summary
Fields inherited from class org.apache.commons.compress.harmony.pack200.BandSet
segmentHeader
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMajorVersion
(int major) void
appendBandCodingSpecifier
(int specifier) int
int
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
pack
(OutputStream out) Encode and write the SegmentHeader bands to the OutputStreamvoid
setAttribute_definition_count
(int attribute_definition_count) void
setClass_count
(int class_count) void
setCp_Class_count
(int count) void
setCp_Descr_count
(int count) void
setCp_Double_count
(int count) void
setCp_Field_count
(int count) void
setCp_Float_count
(int count) void
setCp_Imethod_count
(int count) void
setCp_Int_count
(int count) void
setCp_Long_count
(int count) void
setCp_Method_count
(int count) void
setCp_Signature_count
(int count) void
setCp_String_count
(int count) void
setCp_Utf8_count
(int count) void
setDeflate_hint
(boolean deflate_hint) void
setFile_count
(int file_count) void
setHave_all_code_flags
(boolean have_all_code_flags) void
setHave_class_flags_hi
(boolean have_class_flags_hi) void
setHave_code_flags_hi
(boolean have_code_flags_hi) void
setHave_field_flags_hi
(boolean have_field_flags_hi) void
setHave_method_flags_hi
(boolean have_method_flags_hi) void
setIc_count
(int ic_count) Methods inherited from class org.apache.commons.compress.harmony.pack200.BandSet
cpEntryListToArray, cpEntryOrNullListToArray, encodeBandInt, encodeFlags, encodeFlags, encodeScalar, encodeScalar, integerListToArray, longListToArray
-
Constructor Details
-
SegmentHeader
public SegmentHeader()Constructs a new SegmentHeader
-
-
Method Details
-
addMajorVersion
-
appendBandCodingSpecifier
-
getArchive_modtime
-
getDefaultMajorVersion
-
have_all_code_flags
-
have_class_flags_hi
-
have_code_flags_hi
-
have_field_flags_hi
-
have_file_modtime
-
have_file_options
-
have_file_size_hi
-
have_method_flags_hi
-
pack
Encode and write the SegmentHeader bands to the OutputStream- Specified by:
pack
in classBandSet
- Parameters:
out
- TODO- Throws:
IOException
- If an I/O error occurs.Pack200Exception
- TODO
-
setAttribute_definition_count
-
setClass_count
-
setCp_Class_count
-
setCp_Descr_count
-
setCp_Double_count
-
setCp_Field_count
-
setCp_Float_count
-
setCp_Imethod_count
-
setCp_Int_count
-
setCp_Long_count
-
setCp_Method_count
-
setCp_Signature_count
-
setCp_String_count
-
setCp_Utf8_count
-
setDeflate_hint
-
setFile_count
-
setHave_all_code_flags
-
setHave_class_flags_hi
-
setHave_code_flags_hi
-
setHave_field_flags_hi
-
setHave_method_flags_hi
-
setIc_count
-