Class GZIPHeader

java.lang.Object
org.archive.format.gzip.GZIPHeader
All Implemented Interfaces:
GZIPConstants

public class GZIPHeader extends Object implements GZIPConstants
  • Constructor Details

    • GZIPHeader

      public GZIPHeader()
    • GZIPHeader

      public GZIPHeader(GZIPStaticHeader staticHeader)
  • Method Details

    • getStaticHeader

      public GZIPStaticHeader getStaticHeader()
    • getFileName

      public byte[] getFileName()
    • getComment

      public byte[] getComment()
    • getFNameLength

      public long getFNameLength()
    • getHeaderCRC

      public int getHeaderCRC()
    • setFName

      public void setFName(byte[] fileName)
    • getCommentLength

      public long getCommentLength()
    • setFComment

      public void setFComment(byte[] comment)
    • replaceRecord

      public void replaceRecord(byte[] name, byte[] value) throws GZIPFormatException
      Throws:
      GZIPFormatException
    • removeAllRecords

      public void removeAllRecords(byte[] name)
    • addRecord

      public void addRecord(byte[] name, long intVal) throws GZIPFormatException
      Throws:
      GZIPFormatException
    • addRecord

      public void addRecord(byte[] name, byte[] value) throws GZIPFormatException
      Throws:
      GZIPFormatException
    • getRecord

      public GZIPFExtraRecord getRecord(int i)
    • getRecordCount

      public int getRecordCount()
    • getRecord

      public GZIPFExtraRecord getRecord(byte[] name)
    • getIntRecord

      public long getIntRecord(byte[] name)
    • getLength

      public int getLength()
    • writeBytes

      public void writeBytes(OutputStream os) throws IOException
      Throws:
      IOException
    • isValidCompressionMethod

      public static boolean isValidCompressionMethod(int cm)