public class FileHeader extends BlockHeader
blockHeaderSizeBaseBlockSize, 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 |
|---|
FileHeader(BlockHeader bh,
byte[] fileHeader) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.file.attribute.FileTime |
getArchivalTime()
The time in which the file was archived.
|
java.util.Date |
getArcTime()
Gets
getArchivalTime() as a Date. |
java.util.Date |
getATime()
Gets
getLastAccessTime() as a Date. |
java.nio.file.attribute.FileTime |
getCreationTime()
The time in which the file was created.
|
java.util.Date |
getCTime()
Gets
getCreationTime() as a Date. |
int |
getFileAttr() |
int |
getFileCRC() |
java.lang.String |
getFileName()
The filename either in Unicode or ASCII.
|
byte[] |
getFileNameByteArray() |
java.lang.String |
getFileNameString()
Deprecated.
As of 7.2.0, replaced by
getFileName() |
java.lang.String |
getFileNameW()
Deprecated.
As of 7.2.0, replaced by
getFileName() |
long |
getFullPackSize() |
long |
getFullUnpackSize() |
int |
getHighPackSize() |
int |
getHighUnpackSize() |
HostSystem |
getHostOS() |
java.nio.file.attribute.FileTime |
getLastAccessTime()
The time in which the file was last accessed.
|
java.nio.file.attribute.FileTime |
getLastModifiedTime()
The time in which the file was last modified.
|
java.util.Date |
getMTime()
Gets
getLastModifiedTime() as a Date. |
short |
getNameSize() |
int |
getRecoverySectors() |
byte[] |
getSalt() |
byte[] |
getSubData() |
int |
getSubFlags() |
byte |
getUnpMethod() |
long |
getUnpSize() |
byte |
getUnpVersion() |
boolean |
hasExtTime() |
boolean |
hasSalt() |
boolean |
isDirectory()
whether this fileheader represents a directory
|
boolean |
isEncrypted()
the file is encrypted
|
boolean |
isFileHeader() |
boolean |
isLargeBlock() |
boolean |
isSolid()
this file is compressed as solid (all files handeled as one)
|
boolean |
isSplitAfter()
the file will be continued in the next archive part
|
boolean |
isSplitBefore()
the file is continued in this archive
|
boolean |
isUnicode()
the filename is also present in unicode
|
void |
print() |
void |
setArchivalTime(java.nio.file.attribute.FileTime archivalTime)
Sets the time in which the file was archived.
|
void |
setArcTime(java.util.Date arcTime)
Sets
setArchivalTime(FileTime) from a Date. |
void |
setATime(java.util.Date time)
Sets
setLastAccessTime(FileTime) from a Date. |
void |
setCreationTime(java.nio.file.attribute.FileTime time)
Sets the time in which the file was created.
|
void |
setCTime(java.util.Date time)
Sets
setCreationTime(FileTime) from a Date. |
void |
setFileAttr(int fileAttr) |
void |
setFileName(java.lang.String fileName) |
void |
setFileNameW(java.lang.String fileNameW) |
void |
setLastAccessTime(java.nio.file.attribute.FileTime time)
Sets the time in which the file was last accessed.
|
void |
setLastModifiedTime(java.nio.file.attribute.FileTime time)
Sets the time in which the file was last modified.
|
void |
setMTime(java.util.Date time)
Sets
setLastModifiedTime(FileTime) from a Date. |
java.lang.String |
toString() |
getDataSize, getPackSizegetFlags, getHeadCRC, getHeaderSize, getHeaderSize, getHeaderType, getPositionInFile, hasArchiveDataCRC, hasEncryptVersion, hasVolumeNumber, isSubBlock, setPositionInFilepublic FileHeader(BlockHeader bh, byte[] fileHeader)
public void print()
print in class BlockHeaderpublic java.nio.file.attribute.FileTime getArchivalTime()
arcTime field.public void setArchivalTime(java.nio.file.attribute.FileTime archivalTime)
arcTime field.archivalTime - the timestamp, or null to clear it.public java.util.Date getArcTime()
getArchivalTime() as a Date.
The maximum granularity is reduced from microseconds to milliseconds.public void setArcTime(java.util.Date arcTime)
setArchivalTime(FileTime) from a Date.arcTime - the date, or null to clear it.public java.nio.file.attribute.FileTime getLastAccessTime()
aTime field.public void setLastAccessTime(java.nio.file.attribute.FileTime time)
aTime field.time - the timestamp, or null to clear it.public java.util.Date getATime()
getLastAccessTime() as a Date.
The maximum granularity is reduced from microseconds to milliseconds.public void setATime(java.util.Date time)
setLastAccessTime(FileTime) from a Date.time - the date, or null to clear it.public java.nio.file.attribute.FileTime getCreationTime()
cTime field.public void setCreationTime(java.nio.file.attribute.FileTime time)
cTime field.time - the timestamp, or null to clear it.public java.util.Date getCTime()
getCreationTime() as a Date.
The maximum granularity is reduced from microseconds to milliseconds.public void setCTime(java.util.Date time)
setCreationTime(FileTime) from a Date.time - the date, or null to clear it.public int getFileAttr()
public void setFileAttr(int fileAttr)
public int getFileCRC()
public byte[] getFileNameByteArray()
@Deprecated public java.lang.String getFileNameString()
getFileName()public void setFileName(java.lang.String fileName)
@Deprecated public java.lang.String getFileNameW()
getFileName()public void setFileNameW(java.lang.String fileNameW)
public int getHighPackSize()
public int getHighUnpackSize()
public HostSystem getHostOS()
public java.nio.file.attribute.FileTime getLastModifiedTime()
mTime field.public void setLastModifiedTime(java.nio.file.attribute.FileTime time)
mTime field.time - the timestamp, or null to clear it.public java.util.Date getMTime()
getLastModifiedTime() as a Date.
The maximum granularity is reduced from microseconds to milliseconds.public void setMTime(java.util.Date time)
setLastModifiedTime(FileTime) from a Date.time - the date, or null to clear it.public short getNameSize()
public int getRecoverySectors()
public byte[] getSalt()
public byte[] getSubData()
public int getSubFlags()
public byte getUnpMethod()
public long getUnpSize()
public byte getUnpVersion()
public long getFullPackSize()
public long getFullUnpackSize()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isSplitAfter()
public boolean isSplitBefore()
public boolean isSolid()
public boolean isEncrypted()
public boolean isUnicode()
public boolean isFileHeader()
public boolean hasSalt()
public boolean hasExtTime()
public boolean isLargeBlock()
public boolean isDirectory()
public java.lang.String getFileName()