|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tika.parser.chm.accessor.ChmItspHeader
public class ChmItspHeader
Directory header The directory starts with a header; its format is as
follows: 0000: char[4] 'ITSP' 0004: DWORD Version number 1 0008: DWORD Length
of the directory header 000C: DWORD $0a (unknown) 0010: DWORD $1000 Directory
chunk size 0014: DWORD "Density" of quickref section, usually 2 0018: DWORD
Depth of the index tree - 1 there is no index, 2 if there is one level of
PMGI chunks 001C: DWORD Chunk number of root index chunk, -1 if there is none
(though at least one file has 0 despite there being no index chunk, probably
a bug) 0020: DWORD Chunk number of first PMGL (listing) chunk 0024: DWORD
Chunk number of last PMGL (listing) chunk 0028: DWORD -1 (unknown) 002C:
DWORD Number of directory chunks (total) 0030: DWORD Windows language ID
0034: GUID {5D02926A-212E-11D0-9DF9-00A0C922E6EC} 0044: DWORD $54 (This is
the length again) 0048: DWORD -1 (unknown) 004C: DWORD -1 (unknown) 0050:
DWORD -1 (unknown)
://translated.by/you/microsoft-s-html-help-chm-format-incomplete/original
/?show-translation-form=1
Constructor Summary | |
---|---|
ChmItspHeader()
|
Method Summary | |
---|---|
long |
getBlock_len()
Returns block's length |
int |
getBlockidx_intvl()
Returns block index interval |
int |
getHeader_len()
Returns header length |
int |
getIndex_depth()
Returns an index depth |
int |
getIndex_head()
Returns an index head |
int |
getIndex_root()
Returns index root |
long |
getLang_id()
Returns language id |
long |
getNum_blocks()
Returns number of blocks |
byte[] |
getSignature()
Returns a signature of the header |
byte[] |
getSystem_uuid()
Returns system uuid |
int |
getUnknown_000c()
Returns 000c unknown bytes |
int |
getUnknown_0024()
Returns 0024 unknown bytes |
int |
getUnknown_002c()
Returns 002c unknown bytes |
byte[] |
getUnknown_0044()
Returns 0044 unknown bytes |
int |
getVersion()
Returns version of itsp header |
static void |
main(String[] args)
|
void |
parse(byte[] data,
ChmItspHeader chmItspHeader)
Parses chm accessor |
protected void |
setBlock_len(long block_len)
Sets block length |
protected void |
setBlockidx_intvl(int blockidx_intvl)
Sets block index interval |
protected void |
setHeader_len(int header_len)
Sets itsp header length |
protected void |
setIndex_depth(int index_depth)
Sets an index depth |
protected void |
setIndex_head(int index_head)
Sets an index head |
protected void |
setIndex_root(int index_root)
Sets an index root |
protected void |
setLang_id(long lang_id)
Sets language id |
protected void |
setNum_blocks(long num_blocks)
Sets number of blocks containing in the chm file |
protected void |
setSignature(byte[] signature)
Sets itsp signature |
protected void |
setSystem_uuid(byte[] system_uuid)
Sets system uuid |
protected void |
setUnknown_000c(int unknown_000c)
Sets 000c unknown bytes Unknown means here that those guys who cracked the chm format do not know what's it purposes for |
protected void |
setUnknown_0024(int unknown_0024)
Sets 0024 unknown bytes |
protected void |
setUnknown_002c(int unknown_002c)
Sets 002c unknown bytes |
protected void |
setUnknown_0044(byte[] unknown_0044)
Sets 0044 unknown bytes |
protected void |
setVersion(int version)
Sets a version of itsp header |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ChmItspHeader()
Method Detail |
---|
public String toString()
toString
in class Object
public byte[] getSignature()
protected void setSignature(byte[] signature)
signature
- public int getVersion()
protected void setVersion(int version)
version
- public int getHeader_len()
protected void setHeader_len(int header_len)
header_len
- public int getUnknown_000c()
protected void setUnknown_000c(int unknown_000c)
unknown_000c
- public long getBlock_len()
protected void setBlock_len(long block_len)
block_len
- public int getBlockidx_intvl()
protected void setBlockidx_intvl(int blockidx_intvl)
blockidx_intvl
- public int getIndex_depth()
protected void setIndex_depth(int index_depth)
index_depth
- public int getIndex_root()
protected void setIndex_root(int index_root)
index_root
- public int getIndex_head()
protected void setIndex_head(int index_head)
index_head
- public int getUnknown_0024()
protected void setUnknown_0024(int unknown_0024)
unknown_0024
- public long getNum_blocks()
protected void setNum_blocks(long num_blocks)
num_blocks
- public int getUnknown_002c()
protected void setUnknown_002c(int unknown_002c)
unknown_002c
- public long getLang_id()
protected void setLang_id(long lang_id)
lang_id
- public byte[] getSystem_uuid()
protected void setSystem_uuid(byte[] system_uuid)
system_uuid
- public byte[] getUnknown_0044()
protected void setUnknown_0044(byte[] unknown_0044)
unknown_0044
- public void parse(byte[] data, ChmItspHeader chmItspHeader) throws TikaException
ChmAccessor
parse
in interface ChmAccessor<ChmItspHeader>
data
- chm file
TikaException
public static void main(String[] args)
args
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |