com.github.junrar.rarfile
Class FileHeader

java.lang.Object
  extended by com.github.junrar.rarfile.BaseBlock
      extended by com.github.junrar.rarfile.BlockHeader
          extended by com.github.junrar.rarfile.FileHeader

public class FileHeader
extends BlockHeader

DOCUMENT ME

Version:
$LastChangedRevision$
Author:
$LastChangedBy$

Field Summary
 
Fields inherited from class com.github.junrar.rarfile.BlockHeader
blockHeaderSize
 
Fields inherited from class com.github.junrar.rarfile.BaseBlock
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 Summary
FileHeader(BlockHeader bh, byte[] fileHeader)
           
 
Method Summary
 Date getArcTime()
           
 Date getATime()
           
 Date getCTime()
           
 int getFileAttr()
           
 int getFileCRC()
           
 byte[] getFileNameByteArray()
           
 String getFileNameString()
           
 String getFileNameW()
           
 long getFullPackSize()
           
 long getFullUnpackSize()
           
 int getHighPackSize()
           
 int getHighUnpackSize()
           
 HostSystem getHostOS()
           
 Date getMTime()
           
 short getNameSize()
           
 int getRecoverySectors()
           
 byte[] getSalt()
           
 byte[] getSubData()
           
 int getSubFlags()
           
 byte getUnpMethod()
           
 long getUnpSize()
           
 byte getUnpVersion()
           
 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 setArcTime(Date arcTime)
           
 void setATime(Date time)
           
 void setCTime(Date time)
           
 void setFileAttr(int fileAttr)
           
 void setFileName(String fileName)
           
 void setFileNameW(String fileNameW)
           
 void setMTime(Date time)
           
 String toString()
           
 
Methods inherited from class com.github.junrar.rarfile.BlockHeader
getDataSize, getPackSize
 
Methods inherited from class com.github.junrar.rarfile.BaseBlock
getFlags, getHeadCRC, getHeaderSize, getHeaderType, getPositionInFile, hasArchiveDataCRC, hasEncryptVersion, hasVolumeNumber, isSubBlock, setPositionInFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileHeader

public FileHeader(BlockHeader bh,
                  byte[] fileHeader)
Method Detail

print

public void print()
Overrides:
print in class BlockHeader

getArcTime

public Date getArcTime()

setArcTime

public void setArcTime(Date arcTime)

getATime

public Date getATime()

setATime

public void setATime(Date time)

getCTime

public Date getCTime()

setCTime

public void setCTime(Date time)

getFileAttr

public int getFileAttr()

setFileAttr

public void setFileAttr(int fileAttr)

getFileCRC

public int getFileCRC()

getFileNameByteArray

public byte[] getFileNameByteArray()

getFileNameString

public String getFileNameString()

setFileName

public void setFileName(String fileName)

getFileNameW

public String getFileNameW()

setFileNameW

public void setFileNameW(String fileNameW)

getHighPackSize

public int getHighPackSize()

getHighUnpackSize

public int getHighUnpackSize()

getHostOS

public HostSystem getHostOS()

getMTime

public Date getMTime()

setMTime

public void setMTime(Date time)

getNameSize

public short getNameSize()

getRecoverySectors

public int getRecoverySectors()

getSalt

public byte[] getSalt()

getSubData

public byte[] getSubData()

getSubFlags

public int getSubFlags()

getUnpMethod

public byte getUnpMethod()

getUnpSize

public long getUnpSize()

getUnpVersion

public byte getUnpVersion()

getFullPackSize

public long getFullPackSize()

getFullUnpackSize

public long getFullUnpackSize()

toString

public String toString()
Overrides:
toString in class Object

isSplitAfter

public boolean isSplitAfter()
the file will be continued in the next archive part

Returns:

isSplitBefore

public boolean isSplitBefore()
the file is continued in this archive

Returns:

isSolid

public boolean isSolid()
this file is compressed as solid (all files handeled as one)

Returns:

isEncrypted

public boolean isEncrypted()
the file is encrypted

Returns:

isUnicode

public boolean isUnicode()
the filename is also present in unicode

Returns:

isFileHeader

public boolean isFileHeader()

hasSalt

public boolean hasSalt()

isLargeBlock

public boolean isLargeBlock()

isDirectory

public boolean isDirectory()
whether this fileheader represents a directory

Returns:


Copyright © 2012. All Rights Reserved.