Segment. Corresponds to segment_header in the pack200 specification.
| Modifier and Type | Class and Description |
|---|---|
| private static class | SegmentHeader.Counter
Counter for major/minor class file numbers, so we can work out the default |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private final IntList | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private boolean | |
| private int | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private final boolean | |
| private final boolean | |
| private boolean | |
| private boolean | |
| private int | |
| private static final int[] | |
| private final SegmentHeader. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| private void | |
| public int | |
| public int | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | pack(final OutputStream
TODO out)Implements abstract org. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| private void | |
| private void | |
| private void | |
| private void |
| archive_majver | back to summary |
|---|---|
| private static final int archive_majver | |
| archive_minver | back to summary |
|---|---|
| private static final int archive_minver | |
| archive_modtime | back to summary |
|---|---|
| private int archive_modtime | |
| archive_next_count | back to summary |
|---|---|
| private int archive_next_count | |
| archive_options | back to summary |
|---|---|
| private int archive_options | |
| archive_size_hi | back to summary |
|---|---|
| private int archive_size_hi | |
| archive_size_lo | back to summary |
|---|---|
| private int archive_size_lo | |
| attribute_definition_count | back to summary |
|---|---|
| private int attribute_definition_count | |
| band_headers | back to summary |
|---|---|
| private final IntList band_headers | |
| class_count | back to summary |
|---|---|
| private int class_count | |
| cp_Class_count | back to summary |
|---|---|
| private int cp_Class_count | |
| cp_Descr_count | back to summary |
|---|---|
| private int cp_Descr_count | |
| cp_Double_count | back to summary |
|---|---|
| private int cp_Double_count | |
| cp_Field_count | back to summary |
|---|---|
| private int cp_Field_count | |
| cp_Float_count | back to summary |
|---|---|
| private int cp_Float_count | |
| cp_Imethod_count | back to summary |
|---|---|
| private int cp_Imethod_count | |
| cp_Int_count | back to summary |
|---|---|
| private int cp_Int_count | |
| cp_Long_count | back to summary |
|---|---|
| private int cp_Long_count | |
| cp_Method_count | back to summary |
|---|---|
| private int cp_Method_count | |
| cp_Signature_count | back to summary |
|---|---|
| private int cp_Signature_count | |
| cp_String_count | back to summary |
|---|---|
| private int cp_String_count | |
| cp_Utf8_count | back to summary |
|---|---|
| private int cp_Utf8_count | |
| deflate_hint | back to summary |
|---|---|
| private boolean deflate_hint | |
| file_count | back to summary |
|---|---|
| private int file_count | |
| have_all_code_flags | back to summary |
|---|---|
| private boolean have_all_code_flags | |
| have_class_flags_hi | back to summary |
|---|---|
| private boolean have_class_flags_hi | |
| have_code_flags_hi | back to summary |
|---|---|
| private boolean have_code_flags_hi | |
| have_field_flags_hi | back to summary |
|---|---|
| private boolean have_field_flags_hi | |
| have_file_modtime | back to summary |
|---|---|
| private final boolean have_file_modtime | |
| have_file_options | back to summary |
|---|---|
| private final boolean have_file_options | |
| have_file_size_hi | back to summary |
|---|---|
| private boolean have_file_size_hi | |
| have_method_flags_hi | back to summary |
|---|---|
| private boolean have_method_flags_hi | |
| ic_count | back to summary |
|---|---|
| private int ic_count | |
| magic | back to summary |
|---|---|
| private static final int[] magic | |
| majverCounter | back to summary |
|---|---|
| private final SegmentHeader. | |
| SegmentHeader | back to summary |
|---|---|
| public SegmentHeader() Constructs a new SegmentHeader | |
| addMajorVersion | back to summary |
|---|---|
| public void addMajorVersion(final int major) | |
| appendBandCodingSpecifier | back to summary |
|---|---|
| public void appendBandCodingSpecifier(final int specifier) | |
| calculateArchiveOptions | back to summary |
|---|---|
| private void calculateArchiveOptions() | |
| getArchive_modtime | back to summary |
|---|---|
| public int getArchive_modtime() | |
| getDefaultMajorVersion | back to summary |
|---|---|
| public int getDefaultMajorVersion() | |
| have_all_code_flags | back to summary |
|---|---|
| public boolean have_all_code_flags() | |
| have_class_flags_hi | back to summary |
|---|---|
| public boolean have_class_flags_hi() | |
| have_code_flags_hi | back to summary |
|---|---|
| public boolean have_code_flags_hi() | |
| have_field_flags_hi | back to summary |
|---|---|
| public boolean have_field_flags_hi() | |
| have_file_modtime | back to summary |
|---|---|
| public boolean have_file_modtime() | |
| have_file_options | back to summary |
|---|---|
| public boolean have_file_options() | |
| have_file_size_hi | back to summary |
|---|---|
| public boolean have_file_size_hi() | |
| have_method_flags_hi | back to summary |
|---|---|
| public boolean have_method_flags_hi() | |
| pack | back to summary |
|---|---|
| public void pack(final OutputStream out) throws IOException, Pack200Exception Implements abstract org. Encode and write the SegmentHeader bands to the OutputStream
| |
| setAttribute_definition_count | back to summary |
|---|---|
| public void setAttribute_definition_count(final int attribute_definition_count) | |
| setClass_count | back to summary |
|---|---|
| public void setClass_count(final int class_count) | |
| setCp_Class_count | back to summary |
|---|---|
| public void setCp_Class_count(final int count) | |
| setCp_Descr_count | back to summary |
|---|---|
| public void setCp_Descr_count(final int count) | |
| setCp_Double_count | back to summary |
|---|---|
| public void setCp_Double_count(final int count) | |
| setCp_Field_count | back to summary |
|---|---|
| public void setCp_Field_count(final int count) | |
| setCp_Float_count | back to summary |
|---|---|
| public void setCp_Float_count(final int count) | |
| setCp_Imethod_count | back to summary |
|---|---|
| public void setCp_Imethod_count(final int count) | |
| setCp_Int_count | back to summary |
|---|---|
| public void setCp_Int_count(final int count) | |
| setCp_Long_count | back to summary |
|---|---|
| public void setCp_Long_count(final int count) | |
| setCp_Method_count | back to summary |
|---|---|
| public void setCp_Method_count(final int count) | |
| setCp_Signature_count | back to summary |
|---|---|
| public void setCp_Signature_count(final int count) | |
| setCp_String_count | back to summary |
|---|---|
| public void setCp_String_count(final int count) | |
| setCp_Utf8_count | back to summary |
|---|---|
| public void setCp_Utf8_count(final int count) | |
| setDeflate_hint | back to summary |
|---|---|
| public void setDeflate_hint(final boolean deflate_hint) | |
| setFile_count | back to summary |
|---|---|
| public void setFile_count(final int file_count) | |
| setHave_all_code_flags | back to summary |
|---|---|
| public void setHave_all_code_flags(final boolean have_all_code_flags) | |
| setHave_class_flags_hi | back to summary |
|---|---|
| public void setHave_class_flags_hi(final boolean have_class_flags_hi) | |
| setHave_code_flags_hi | back to summary |
|---|---|
| public void setHave_code_flags_hi(final boolean have_code_flags_hi) | |
| setHave_field_flags_hi | back to summary |
|---|---|
| public void setHave_field_flags_hi(final boolean have_field_flags_hi) | |
| setHave_method_flags_hi | back to summary |
|---|---|
| public void setHave_method_flags_hi(final boolean have_method_flags_hi) | |
| setIc_count | back to summary |
|---|---|
| public void setIc_count(final int ic_count) | |
| writeArchiveFileCounts | back to summary |
|---|---|
| private void writeArchiveFileCounts(final OutputStream out) throws IOException, Pack200Exception | |
| writeArchiveSpecialCounts | back to summary |
|---|---|
| private void writeArchiveSpecialCounts(final OutputStream out) throws IOException, Pack200Exception | |
| writeClassCounts | back to summary |
|---|---|
| private void writeClassCounts(final OutputStream out) throws IOException, Pack200Exception | |
| writeCpCounts | back to summary |
|---|---|
| private void writeCpCounts(final OutputStream out) throws IOException, Pack200Exception | |
| Modifier and Type | Field and Description |
|---|---|
| private final int[] | |
| private int | |
| private final int[] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public int |
| counts | back to summary |
|---|---|
| private final int[] counts | |
| length | back to summary |
|---|---|
| private int length | |
| objs | back to summary |
|---|---|
| private final int[] objs | |
| Counter | back to summary |
|---|---|
| private Counter() | |
| add | back to summary |
|---|---|
| public void add(final int obj) | |
| getMostCommon | back to summary |
|---|---|
| public int getMostCommon() | |