java.lang.Object
kala.compress.harmony.pack200.BandSet
kala.compress.harmony.pack200.SegmentHeader

public class SegmentHeader extends BandSet
SegmentHeader is the header band of a Segment. Corresponds to segment_header in the pack200 specification.
  • Field Details

    • magic

      private static final int[] magic
    • archive_minver

      private static final int archive_minver
      See Also:
    • archive_majver

      private static final int archive_majver
      See Also:
    • archive_options

      private int archive_options
    • cp_Utf8_count

      private int cp_Utf8_count
    • cp_Int_count

      private int cp_Int_count
    • cp_Float_count

      private int cp_Float_count
    • cp_Long_count

      private int cp_Long_count
    • cp_Double_count

      private int cp_Double_count
    • cp_String_count

      private int cp_String_count
    • cp_Class_count

      private int cp_Class_count
    • cp_Signature_count

      private int cp_Signature_count
    • cp_Descr_count

      private int cp_Descr_count
    • cp_Field_count

      private int cp_Field_count
    • cp_Method_count

      private int cp_Method_count
    • cp_Imethod_count

      private int cp_Imethod_count
    • attribute_definition_count

      private int attribute_definition_count
    • band_headers

      private final IntList band_headers
    • have_all_code_flags

      private boolean have_all_code_flags
    • archive_size_hi

      private int archive_size_hi
    • archive_size_lo

      private int archive_size_lo
    • archive_next_count

      private int archive_next_count
    • archive_modtime

      private int archive_modtime
    • file_count

      private int file_count
    • deflate_hint

      private boolean deflate_hint
    • have_file_modtime

      private final boolean have_file_modtime
      See Also:
    • have_file_options

      private final boolean have_file_options
      See Also:
    • have_file_size_hi

      private boolean have_file_size_hi
    • have_class_flags_hi

      private boolean have_class_flags_hi
    • have_field_flags_hi

      private boolean have_field_flags_hi
    • have_method_flags_hi

      private boolean have_method_flags_hi
    • have_code_flags_hi

      private boolean have_code_flags_hi
    • ic_count

      private int ic_count
    • class_count

      private int class_count
    • majverCounter

      private final SegmentHeader.Counter majverCounter
  • Constructor Details

    • SegmentHeader

      public SegmentHeader()
      Constructs a new SegmentHeader
  • Method Details

    • addMajorVersion

      public void addMajorVersion(int major)
    • appendBandCodingSpecifier

      public void appendBandCodingSpecifier(int specifier)
    • calculateArchiveOptions

      private void calculateArchiveOptions()
    • getArchive_modtime

      public int getArchive_modtime()
    • getDefaultMajorVersion

      public int getDefaultMajorVersion()
    • have_all_code_flags

      public boolean have_all_code_flags()
    • have_class_flags_hi

      public boolean have_class_flags_hi()
    • have_code_flags_hi

      public boolean have_code_flags_hi()
    • have_field_flags_hi

      public boolean have_field_flags_hi()
    • have_file_modtime

      public boolean have_file_modtime()
    • have_file_options

      public boolean have_file_options()
    • have_file_size_hi

      public boolean have_file_size_hi()
    • have_method_flags_hi

      public boolean have_method_flags_hi()
    • pack

      public void pack(OutputStream out) throws IOException, Pack200Exception
      Encode and write the SegmentHeader bands to the OutputStream
      Specified by:
      pack in class BandSet
      Parameters:
      out - TODO
      Throws:
      IOException - If an I/O error occurs.
      Pack200Exception - TODO
    • setAttribute_definition_count

      public void setAttribute_definition_count(int attribute_definition_count)
    • setClass_count

      public void setClass_count(int class_count)
    • setCp_Class_count

      public void setCp_Class_count(int count)
    • setCp_Descr_count

      public void setCp_Descr_count(int count)
    • setCp_Double_count

      public void setCp_Double_count(int count)
    • setCp_Field_count

      public void setCp_Field_count(int count)
    • setCp_Float_count

      public void setCp_Float_count(int count)
    • setCp_Imethod_count

      public void setCp_Imethod_count(int count)
    • setCp_Int_count

      public void setCp_Int_count(int count)
    • setCp_Long_count

      public void setCp_Long_count(int count)
    • setCp_Method_count

      public void setCp_Method_count(int count)
    • setCp_Signature_count

      public void setCp_Signature_count(int count)
    • setCp_String_count

      public void setCp_String_count(int count)
    • setCp_Utf8_count

      public void setCp_Utf8_count(int count)
    • setDeflate_hint

      public void setDeflate_hint(boolean deflate_hint)
    • setFile_count

      public void setFile_count(int file_count)
    • setHave_all_code_flags

      public void setHave_all_code_flags(boolean have_all_code_flags)
    • setHave_class_flags_hi

      public void setHave_class_flags_hi(boolean have_class_flags_hi)
    • setHave_code_flags_hi

      public void setHave_code_flags_hi(boolean have_code_flags_hi)
    • setHave_field_flags_hi

      public void setHave_field_flags_hi(boolean have_field_flags_hi)
    • setHave_method_flags_hi

      public void setHave_method_flags_hi(boolean have_method_flags_hi)
    • setIc_count

      public void setIc_count(int ic_count)
    • writeArchiveFileCounts

      private void writeArchiveFileCounts(OutputStream out) throws IOException, Pack200Exception
      Throws:
      IOException
      Pack200Exception
    • writeArchiveSpecialCounts

      private void writeArchiveSpecialCounts(OutputStream out) throws IOException, Pack200Exception
      Throws:
      IOException
      Pack200Exception
    • writeClassCounts

      private void writeClassCounts(OutputStream out) throws IOException, Pack200Exception
      Throws:
      IOException
      Pack200Exception
    • writeCpCounts

      private void writeCpCounts(OutputStream out) throws IOException, Pack200Exception
      Throws:
      IOException
      Pack200Exception