Class ZipPosixPermissionFixer.ZipReader

  • Enclosing class:
    ZipPosixPermissionFixer

    static final class ZipPosixPermissionFixer.ZipReader
    extends java.lang.Object
    • Method Detail

      • zipSize

        public long zipSize()
      • readLocalFileHeader

        public com.google.common.base.Optional<ZipPosixPermissionFixer.LocalFileHeader> readLocalFileHeader​(long position)
                                                                                                     throws java.io.IOException
        Checks whether the archive starts with a LFH. If it doesn't, it may be an empty archive.
        Throws:
        java.io.IOException
      • readRecord

        private com.google.common.base.Optional<? extends Record> readRecord​(RecordDefinition rd,
                                                                             long position)
                                                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • readRecordWithSignature

        private com.google.common.base.Optional<Record> readRecordWithSignature​(RecordDefinition rd,
                                                                                long position)
                                                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • doReadRecord

        private com.google.common.base.Optional<Record> doReadRecord​(java.lang.Class<? extends Record> recordClass,
                                                                     RecordDefinition rd,
                                                                     long position)
                                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • createRecord

        private Record createRecord​(java.lang.Class<? extends Record> recordClass,
                                    Record delegate)
      • readBasicRecord

        private Record readBasicRecord​(RecordDefinition definition,
                                       long position)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • position

        public long position​(Record record)