Class HeaderReader


  • public class HeaderReader
    extends Object
    Helper class to read header information for the zip file
    • Constructor Detail

      • HeaderReader

        public HeaderReader​(RandomAccessFile zip4jRaf)
        Creates a new HeaderReader object with the given input stream
        Parameters:
        zip4jRaf -
    • Method Detail

      • readAllHeaders

        public ZipModel readAllHeaders()
                                throws ZipException
        Reads all the header information for the zip file.

        Note: This method does not read local file header information
        Returns:
        ZipModel
        Throws:
        ZipException
      • readAllHeaders

        public ZipModel readAllHeaders​(String fileNameCharset)
                                throws ZipException
        Reads all the header information for the zip file. File names are read with input charset name. If this parameter is null, default system charset is used.

        Note: This method does not read local file header information
        Returns:
        ZipModel
        Throws:
        ZipException