Class MainHeader

java.lang.Object
com.github.junrar.rarfile.BaseBlock
com.github.junrar.rarfile.MainHeader

public class MainHeader extends BaseBlock
The main header of an rar archive. holds information concerning the whole archive (solid, encrypted etc).
Version:
$LastChangedRevision$
  • Field Details

    • logger

      private static final org.slf4j.Logger logger
    • mainHeaderSizeWithEnc

      public static final short mainHeaderSizeWithEnc
      See Also:
    • mainHeaderSize

      public static final short mainHeaderSize
      See Also:
    • highPosAv

      private final short highPosAv
    • posAv

      private final int posAv
    • encryptVersion

      private byte encryptVersion
  • Constructor Details

    • MainHeader

      public MainHeader(BaseBlock bb, byte[] mainHeader)
  • Method Details

    • hasArchCmt

      public boolean hasArchCmt()
      old cmt block is present
      Returns:
      true if has cmt block
    • getEncryptVersion

      public byte getEncryptVersion()
      the version the the encryption
      Returns:
      .
    • getHighPosAv

      public short getHighPosAv()
    • getPosAv

      public int getPosAv()
    • isEncrypted

      public boolean isEncrypted()
      returns whether the archive is encrypted
      Returns:
      .
    • isMultiVolume

      public boolean isMultiVolume()
      Returns:
      whether the archive is a multivolume archive
    • isFirstVolume

      public boolean isFirstVolume()
      Returns:
      if the archive is a multivolume archive this method returns whether this instance is the first part of the multivolume archive
    • print

      public void print()
      Overrides:
      print in class BaseBlock
    • isSolid

      public boolean isSolid()
      Returns:
      whether this archive is solid. in this case you can only extract all file at once
    • isLocked

      public boolean isLocked()
    • isProtected

      public boolean isProtected()
    • isAV

      public boolean isAV()
    • isNewNumbering

      public boolean isNewNumbering()
      Returns:
      the numbering format a multivolume archive