plugins.wcx
Class HeaderDataEx

java.lang.Object
  extended by plugins.wcx.HeaderDataEx

public class HeaderDataEx
extends java.lang.Object

HeaderData is a structure used in readerHeader.

Author:
Ken

Field Summary
static int FILE_ATTRIBUTE_ANY_FILE
          file attribute of fileAttr.
static int FILE_ATTRIBUTE_ARCHIVE
          file attribute of fileAttr.
static int FILE_ATTRIBUTE_DIRECTORY
          file attribute of fileAttr.
static int FILE_ATTRIBUTE_HIDDEN
          file attribute of fileAttr.
static int FILE_ATTRIBUTE_READONLY
          file attribute of fileAttr.
static int FILE_ATTRIBUTE_SYSTEM
          file attribute of fileAttr.
static int FILE_ATTRIBUTE_VOLUME_ID_FILE
          file attribute of fileAttr.
 
Constructor Summary
HeaderDataEx()
          HeaderData is a structure used in ReaderHeader.
 
Method Summary
 java.lang.String getArcName()
          ArcName contain the name of the archive.
 java.lang.String getCmtBuf()
          The cmtBuf variable is for the file comment.
 int getCmtBufSize()
          The cmtBufSize variable is for the file comment.
 int getCmtSize()
          The cmtSize variable is for the file comment.
 int getCmtState()
          The cmtState variable is for the file comment.
 int getFileAttr()
          This is the file attribute.
 long getFileCRC()
          FileCRC is the 32-bit CRC (cyclic redundancy check) checksum of the file.
 java.lang.String getFileName()
          ArcName contain the name of the file within the archive.
 long getFileTime()
          FileTime contains the date and the time of the file’s last update.
 int getFlags()
           
 int getHostOs()
          HostOS is there for compatibility with unrar.dll only, and should be set to zero.
 int getMethod()
           
 long getPackSize()
          PackSize contain size of the file when packed.
 long getUnpSize()
          UnpSize contain the size of the file when extracted.
 int getUnpVer()
           
 void setArcName(java.lang.String arcName)
          ArcName contain the name of the archive.
 void setCmtBuf(java.lang.String cmtBuf)
          The cmtBuf variable is for the file comment.
 void setCmtBufSize(int cmtBufSize)
          The cmtBufSize variable is for the file comment.
 void setCmtSize(int cmtSize)
          The cmtSize variable is for the file comment.
 void setCmtState(int cmtState)
          The cmtState variable is for the file comment.
 void setFileAttr(int fileAttr)
          This is the file attribute.
 void setFileCRC(long fileCRC)
          FileCRC is the 32-bit CRC (cyclic redundancy check) checksum of the file.
 void setFileName(java.lang.String fileName)
          ArcName contain the name of the file within the archive.
 void setFileTime(java.util.Calendar cal)
          FileTime contains the date and the time of the file’s last update.
 void setFlags(int flags)
           
 void setHostOs(int hostOs)
          HostOS is there for compatibility with unrar.dll only, and should be set to zero.
 void setMethod(int method)
           
 void setPackSize(long packSize)
          PackSize contain size of the file when packed.
 void setUnpSize(long unpSize)
          UnpSize contain the size of the file when extracted.
 void setUnpVer(int unpVer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_ATTRIBUTE_READONLY

public static final int FILE_ATTRIBUTE_READONLY
file attribute of fileAttr.

See Also:
Constant Field Values

FILE_ATTRIBUTE_HIDDEN

public static final int FILE_ATTRIBUTE_HIDDEN
file attribute of fileAttr.

See Also:
Constant Field Values

FILE_ATTRIBUTE_SYSTEM

public static final int FILE_ATTRIBUTE_SYSTEM
file attribute of fileAttr.

See Also:
Constant Field Values

FILE_ATTRIBUTE_VOLUME_ID_FILE

public static final int FILE_ATTRIBUTE_VOLUME_ID_FILE
file attribute of fileAttr.

See Also:
Constant Field Values

FILE_ATTRIBUTE_DIRECTORY

public static final int FILE_ATTRIBUTE_DIRECTORY
file attribute of fileAttr.

See Also:
Constant Field Values

FILE_ATTRIBUTE_ARCHIVE

public static final int FILE_ATTRIBUTE_ARCHIVE
file attribute of fileAttr.

See Also:
Constant Field Values

FILE_ATTRIBUTE_ANY_FILE

public static final int FILE_ATTRIBUTE_ANY_FILE
file attribute of fileAttr.

See Also:
Constant Field Values
Constructor Detail

HeaderDataEx

public HeaderDataEx()
HeaderData is a structure used in ReaderHeader.

Method Detail

getArcName

public final java.lang.String getArcName()
ArcName contain the name of the archive.

Returns:
Returns the arcName.

setArcName

public final void setArcName(java.lang.String arcName)
ArcName contain the name of the archive.

Parameters:
arcName - The arcName to set.

getFileName

public final java.lang.String getFileName()
ArcName contain the name of the file within the archive.

Returns:
Returns the fileName.

setFileName

public final void setFileName(java.lang.String fileName)
ArcName contain the name of the file within the archive.

Parameters:
fileName - The fileName to set.

getFlags

public final int getFlags()
Returns:
Returns the flags.

setFlags

public final void setFlags(int flags)
Parameters:
flags - The flags to set.

getPackSize

public final long getPackSize()
PackSize contain size of the file when packed.

Returns:
Returns the packSize.

setPackSize

public final void setPackSize(long packSize)
PackSize contain size of the file when packed.

Parameters:
packSize - The packSize to set.

getUnpSize

public final long getUnpSize()
UnpSize contain the size of the file when extracted.

Returns:
Returns the unpSize.

setUnpSize

public final void setUnpSize(long unpSize)
UnpSize contain the size of the file when extracted.

Parameters:
unpSize - The unpSize to set.

getHostOs

public final int getHostOs()
HostOS is there for compatibility with unrar.dll only, and should be set to zero.

Returns:
Returns the hostOs.

setHostOs

public final void setHostOs(int hostOs)
HostOS is there for compatibility with unrar.dll only, and should be set to zero.

Parameters:
hostOs - The hostOs to set.

getFileCRC

public final long getFileCRC()
FileCRC is the 32-bit CRC (cyclic redundancy check) checksum of the file. If not available, set to zero.

Returns:
Returns the fileCRC.

setFileCRC

public final void setFileCRC(long fileCRC)
FileCRC is the 32-bit CRC (cyclic redundancy check) checksum of the file. If not available, set to zero.

Parameters:
fileCRC - The fileCRC to set.

getFileTime

public final long getFileTime()
FileTime contains the date and the time of the file’s last update. Use the following algorithm to set the value:
FileTime = (year - 1980) << 25 |
month << 21 |
day << 16 |
hour << 11 |
minute << 5 |
second/2  
Make sure that:

Returns:
Returns the fileTime.

setFileTime

public final void setFileTime(java.util.Calendar cal)
FileTime contains the date and the time of the file’s last update.
milliseconds since the epoch (00:00:00 GMT, January 1, 1970

Parameters:
cal - The fileTime to set.

getUnpVer

public final int getUnpVer()
Returns:
Returns the unpVer.

setUnpVer

public final void setUnpVer(int unpVer)
Parameters:
unpVer - The unpVer to set.

getMethod

public final int getMethod()
Returns:
Returns the method.

setMethod

public final void setMethod(int method)
Parameters:
method - The method to set.

getFileAttr

public final int getFileAttr()
This is the file attribute. Can be set to any combination of the following values:

Returns:
Returns the fileAttr.

setFileAttr

public final void setFileAttr(int fileAttr)
This is the file attribute. Can be set to any combination of the following values:

Parameters:
fileAttr - The fileAttr to set.

getCmtBuf

public final java.lang.String getCmtBuf()
The cmtBuf variable is for the file comment. It is currently not used by Total Commander, so may be set to NULL.

Returns:
Returns the cmtBuf.

setCmtBuf

public final void setCmtBuf(java.lang.String cmtBuf)
The cmtBuf variable is for the file comment. It is currently not used by Total Commander, so may be set to NULL.

Parameters:
cmtBuf - the fCmtBuf to set

getCmtBufSize

public final int getCmtBufSize()
The cmtBufSize variable is for the file comment. It is currently not used by Total Commander, so may be set to NULL.

Returns:
Returns the cmtBufSize.

setCmtBufSize

public final void setCmtBufSize(int cmtBufSize)
The cmtBufSize variable is for the file comment. It is currently not used by Total Commander, so may be set to NULL.

Parameters:
cmtBufSize - the fCmtBufSize to set

getCmtSize

public final int getCmtSize()
The cmtSize variable is for the file comment. It is currently not used by Total Commander, so may be set to NULL.

Returns:
Returns the cmtSize.

setCmtSize

public final void setCmtSize(int cmtSize)
The cmtSize variable is for the file comment. It is currently not used by Total Commander, so may be set to NULL.

Parameters:
cmtSize - the fCmtSize to set

getCmtState

public final int getCmtState()
The cmtState variable is for the file comment. It is currently not used by Total Commander, so may be set to NULL.

Returns:
Returns the cmtState.

setCmtState

public final void setCmtState(int cmtState)
The cmtState variable is for the file comment. It is currently not used by Total Commander, so may be set to NULL.

Parameters:
cmtState - the fCmtState to set