public class ChmItsfHeader extends Object implements ChmAccessor<ChmItsfHeader>
| Constructor and Description | 
|---|
ChmItsfHeader()  | 
| Modifier and Type | Method and Description | 
|---|---|
long | 
getDataOffset()
Returns data offset 
 | 
byte[] | 
getDir_uuid()
Returns directory uuid 
 | 
long | 
getDirLen()
Returns directory length 
 | 
long | 
getDirOffset()
Returns directory offset 
 | 
int | 
getHeaderLen()
Returns itsf header length 
 | 
long | 
getLangId()
Returns language ID 
 | 
long | 
getLastModified()
Returns last modified date of the chm file 
 | 
byte[] | 
getSignature()
Returns a signature of itsf header 
 | 
byte[] | 
getStream_uuid()
Returns stream uuid 
 | 
int | 
getUnknown_000c()
Returns unknown_00c value 
 | 
long | 
getUnknownLen()
Returns unknown length 
 | 
long | 
getUnknownOffset()
Returns unknown offset 
 | 
int | 
getVersion()
Returns itsf header version 
 | 
static void | 
main(String[] args)  | 
void | 
parse(byte[] data,
     ChmItsfHeader chmItsfHeader)
Parses chm accessor 
 | 
protected void | 
setDataOffset(long data_offset)
Sets data offset 
 | 
protected void | 
setDir_uuid(byte[] dir_uuid)
Sets directory uuid 
 | 
protected void | 
setDirLen(long dir_len)
Sets directory length 
 | 
protected void | 
setDirOffset(long dir_offset)
Sets directory offset 
 | 
protected void | 
setHeaderLen(int header_len)
Sets itsf header length 
 | 
protected void | 
setLangId(long lang_id)
Sets language_id 
 | 
protected void | 
setLastModified(long last_modified)
Sets last modified date of the chm file 
 | 
protected void | 
setSignature(byte[] signature)
Sets itsf header signature 
 | 
protected void | 
setStream_uuid(byte[] stream_uuid)
Sets stream uuid 
 | 
protected void | 
setUnknown_000c(int unknown_000c)
Sets unknown_00c 
 | 
protected void | 
setUnknownLen(long unknown_len)
Sets unknown length 
 | 
protected void | 
setUnknownOffset(long unknown_offset)
Sets unknown offset 
 | 
protected void | 
setVersion(int version)
Sets itsf version 
 | 
String | 
toString()
Prints the values of ChmfHeader 
 | 
public static void main(String[] args)
public String toString()
public byte[] getSignature()
protected void setSignature(byte[] signature)
signature - public int getVersion()
protected void setVersion(int version)
version - public int getHeaderLen()
protected void setHeaderLen(int header_len)
header_len - public int getUnknown_000c()
protected void setUnknown_000c(int unknown_000c)
unknown_000c - public long getLastModified()
protected void setLastModified(long last_modified)
last_modified - public long getLangId()
protected void setLangId(long lang_id)
lang_id - public byte[] getDir_uuid()
protected void setDir_uuid(byte[] dir_uuid)
dir_uuid - public byte[] getStream_uuid()
protected void setStream_uuid(byte[] stream_uuid)
stream_uuid - public long getUnknownOffset()
protected void setUnknownOffset(long unknown_offset)
unknown_offset - public long getUnknownLen()
protected void setUnknownLen(long unknown_len)
unknown_len - public long getDirOffset()
protected void setDirOffset(long dir_offset)
dir_offset - public long getDirLen()
protected void setDirLen(long dir_len)
dir_len - public long getDataOffset()
protected void setDataOffset(long data_offset)
data_offset - public void parse(byte[] data,
                  ChmItsfHeader chmItsfHeader)
           throws TikaException
ChmAccessorparse in interface ChmAccessor<ChmItsfHeader>data - chm fileTikaExceptionCopyright © 2007–2022 The Apache Software Foundation. All rights reserved.