Class EndOfCentralDir

java.lang.Object
com.pnfsoftware.jeb.util.encoding.zip.fsr.EndOfCentralDir

public class EndOfCentralDir extends Object
Representation of the end of central directory of a Zip file. At least 22 bytes.
  • Constructor Details

    • EndOfCentralDir

      public EndOfCentralDir()
  • Method Details

    • parse

      public static EndOfCentralDir parse(SeekableByteChannel channel, int base) throws IOException
      Parse an end-of-central-directory record from a channel.
      Parameters:
      channel - input channel
      base - offset of the EOCD signature
      Returns:
      parsed EOCD record
      Throws:
      IOException - if the record cannot be read
    • toString

      public String toString()
      Overrides:
      toString in class Object