Class ExtraField.SubField

java.lang.Object
kala.compress.compressors.gzip.ExtraField.SubField
Enclosing class:
ExtraField

public static class ExtraField.SubField extends Object
If the FLG.FEXTRA bit is set, an "extra field" is present in the header, with total length XLEN bytes. It consists of a series of subfields, each of the form:
 +---+---+---+---+==================================+
 |SI1|SI2|  LEN  |... LEN bytes of subfield data ...|
 +---+---+---+---+==================================+
 

The reserved IDs are:

 SI1         SI2         Data
 ----------  ----------  ----
 0x41 ('A')  0x70 ('P')  Apollo file type information
 

Subfield IDs with SI2 = 0 are reserved for future use.

LEN gives the length of the subfield data, excluding the 4 initial bytes.

See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final byte[]
     
    private final byte
     
    private final byte
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SubField(byte si1, byte si2, byte[] payload)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    The 2 character ISO-8859-1 string made from the si1 and si2 bytes of the sub field id.
    byte[]
    The subfield payload.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • si1

      private final byte si1
    • si2

      private final byte si2
    • payload

      private final byte[] payload
  • Constructor Details

    • SubField

      SubField(byte si1, byte si2, byte[] payload)
  • Method Details

    • getId

      public String getId()
      The 2 character ISO-8859-1 string made from the si1 and si2 bytes of the sub field id.
      Returns:
      Two character ID.
    • getPayload

      public byte[] getPayload()
      The subfield payload.
      Returns:
      The payload.