Class GZIPFExtraRecord

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

public class GZIPFExtraRecord extends Object implements GZIPConstants
  • Constructor Details

  • Method Details

    • matchesName

      public boolean matchesName(byte[] name)
    • getName

      public byte[] getName()
    • getValue

      public byte[] getValue()
    • setValue

      public void setValue(byte[] value)
    • length

      public int length()
      Returns:
      the number of bytes used by this record: 0 - if the name is not set (invalid record), 4 - if the value is not set (name + 0-length value) 4 + value.length - if both are set (valid record, name + non-empty value)
    • writeTo

      public void writeTo(byte[] buf, int offset)
    • writeTo

      public void writeTo(OutputStream os) throws IOException
      Throws:
      IOException
    • read

      public int read(InputStream is, int maxRead) throws IOException
      Throws:
      IOException
    • read

      public int read(byte[] buf, int offset) throws GZIPFormatException, IOException
      Throws:
      GZIPFormatException
      IOException