public class MainHeader extends BaseBlock
| Modifier and Type | Field and Description |
|---|---|
static short |
mainHeaderSize |
static short |
mainHeaderSizeWithEnc |
BaseBlockSize, EARC_DATACRC, EARC_NEXT_VOLUME, EARC_REVSPACE, EARC_VOLNUMBER, flags, headCRC, headerSize, headerType, LHD_COMMENT, LHD_DIRECTORY, LHD_EXTFLAGS, LHD_EXTTIME, LHD_LARGE, LHD_PASSWORD, LHD_SALT, LHD_SOLID, LHD_SPLIT_AFTER, LHD_SPLIT_BEFORE, LHD_UNICODE, LHD_VERSION, LHD_WINDOW1024, LHD_WINDOW128, LHD_WINDOW2048, LHD_WINDOW256, LHD_WINDOW4096, LHD_WINDOW512, LHD_WINDOW64, LHD_WINDOWMASK, LONG_BLOCK, MHD_AV, MHD_COMMENT, MHD_ENCRYPTVER, MHD_FIRSTVOLUME, MHD_LOCK, MHD_NEWNUMBERING, MHD_PACK_COMMENT, MHD_PASSWORD, MHD_PROTECT, MHD_SOLID, MHD_VOLUME, positionInFile, SKIP_IF_UNKNOWN| Constructor and Description |
|---|
MainHeader(BaseBlock bb,
byte[] mainHeader) |
| Modifier and Type | Method and Description |
|---|---|
byte |
getEncryptVersion()
the version the the encryption
|
short |
getHighPosAv() |
int |
getPosAv() |
boolean |
hasArchCmt()
old cmt block is present
|
boolean |
isAV() |
boolean |
isEncrypted()
returns whether the archive is encrypted
|
boolean |
isFirstVolume()
if the archive is a multivolume archive this method returns whether this instance is the first part of the multivolume archive
|
boolean |
isLocked() |
boolean |
isMultiVolume()
return whether the archive is a multivolume archive
|
boolean |
isNewNumbering()
the numbering format a multivolume archive
|
boolean |
isProtected() |
boolean |
isSolid()
returns whether this archive is solid. in this case you can only extract all file at once
|
void |
print() |
getFlags, getHeadCRC, getHeaderSize, getHeaderType, getPositionInFile, hasArchiveDataCRC, hasEncryptVersion, hasVolumeNumber, isSubBlock, setPositionInFilepublic static final short mainHeaderSizeWithEnc
public static final short mainHeaderSize
public MainHeader(BaseBlock bb, byte[] mainHeader)
public boolean hasArchCmt()
public byte getEncryptVersion()
public short getHighPosAv()
public int getPosAv()
public boolean isEncrypted()
public boolean isMultiVolume()
public boolean isFirstVolume()
public boolean isSolid()
public boolean isLocked()
public boolean isProtected()
public boolean isAV()
public boolean isNewNumbering()
Copyright © 2017. All rights reserved.