Class ChmItspHeader
java.lang.Object
org.apache.tika.parser.microsoft.chm.ChmItspHeader
- All Implemented Interfaces:
- Serializable,- ChmAccessor<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)
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionlongReturns block's lengthintReturns block index intervalintReturns header lengthintReturns an index depthintReturns an index headintReturns index rootlongReturns language idlongReturns number of blocksbyte[]Returns a signature of the headerbyte[]Returns system uuidintReturns 000c unknown bytesintReturns 0024 unknown bytesintReturns 002c unknown bytesbyte[]Returns 0044 unknown bytesintReturns version of itsp headervoidparse(byte[] data, ChmItspHeader chmItspHeader) Parses chm accessorprotected voidsetBlock_len(long block_len) Sets block lengthprotected voidsetBlockidx_intvl(int blockidx_intvl) Sets block index intervalprotected voidsetHeader_len(int header_len) Sets itsp header lengthprotected voidsetIndex_depth(int index_depth) Sets an index depthprotected voidsetIndex_head(int index_head) Sets an index headprotected voidsetIndex_root(int index_root) Sets an index rootprotected voidsetLang_id(long lang_id) Sets language idprotected voidsetNum_blocks(long num_blocks) Sets number of blocks containing in the chm fileprotected voidsetSignature(byte[] signature) Sets itsp signatureprotected voidsetSystem_uuid(byte[] system_uuid) Sets system uuidprotected voidsetUnknown_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 forprotected voidsetUnknown_0024(int unknown_0024) Sets 0024 unknown bytesprotected voidsetUnknown_002c(int unknown_002c) Sets 002c unknown bytesprotected voidsetUnknown_0044(byte[] unknown_0044) Sets 0044 unknown bytesprotected voidsetVersion(int version) Sets a version of itsp headertoString()
- 
Constructor Details- 
ChmItspHeaderpublic ChmItspHeader()
 
- 
- 
Method Details- 
toString
- 
getSignaturepublic byte[] getSignature()Returns a signature of the header- Returns:
- itsp signature
 
- 
setSignatureprotected void setSignature(byte[] signature) Sets itsp signature- Parameters:
- signature-
 
- 
getVersionpublic int getVersion()Returns version of itsp header- Returns:
- version
 
- 
setVersionprotected void setVersion(int version) Sets a version of itsp header- Parameters:
- version-
 
- 
getHeader_lenpublic int getHeader_len()Returns header length- Returns:
- header length
 
- 
setHeader_lenprotected void setHeader_len(int header_len) Sets itsp header length- Parameters:
- header_len-
 
- 
getUnknown_000cpublic int getUnknown_000c()Returns 000c unknown bytes
- 
setUnknown_000cprotected 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- Parameters:
- unknown_000c-
 
- 
getBlock_lenpublic long getBlock_len()Returns block's length- Returns:
- block_length
 
- 
setBlock_lenprotected void setBlock_len(long block_len) Sets block length- Parameters:
- block_len-
 
- 
getBlockidx_intvlpublic int getBlockidx_intvl()Returns block index interval- Returns:
- blockidx_intvl
 
- 
setBlockidx_intvlprotected void setBlockidx_intvl(int blockidx_intvl) Sets block index interval- Parameters:
- blockidx_intvl-
 
- 
getIndex_depthpublic int getIndex_depth()Returns an index depth- Returns:
- index_depth
 
- 
setIndex_depthprotected void setIndex_depth(int index_depth) Sets an index depth- Parameters:
- index_depth-
 
- 
getIndex_rootpublic int getIndex_root()Returns index root- Returns:
- index_root
 
- 
setIndex_rootprotected void setIndex_root(int index_root) Sets an index root- Parameters:
- index_root-
 
- 
getIndex_headpublic int getIndex_head()Returns an index head- Returns:
- index_head
 
- 
setIndex_headprotected void setIndex_head(int index_head) Sets an index head- Parameters:
- index_head-
 
- 
getUnknown_0024public int getUnknown_0024()Returns 0024 unknown bytes- Returns:
- unknown_0024
 
- 
setUnknown_0024protected void setUnknown_0024(int unknown_0024) Sets 0024 unknown bytes- Parameters:
- unknown_0024-
 
- 
getNum_blockspublic long getNum_blocks()Returns number of blocks- Returns:
- num_blocks
 
- 
setNum_blocksprotected void setNum_blocks(long num_blocks) Sets number of blocks containing in the chm file- Parameters:
- num_blocks-
 
- 
getUnknown_002cpublic int getUnknown_002c()Returns 002c unknown bytes- Returns:
- unknown_002c
 
- 
setUnknown_002cprotected void setUnknown_002c(int unknown_002c) Sets 002c unknown bytes- Parameters:
- unknown_002c-
 
- 
getLang_idpublic long getLang_id()Returns language id- Returns:
- lang_id
 
- 
setLang_idprotected void setLang_id(long lang_id) Sets language id- Parameters:
- lang_id-
 
- 
getSystem_uuidpublic byte[] getSystem_uuid()Returns system uuid- Returns:
- system_uuid
 
- 
setSystem_uuidprotected void setSystem_uuid(byte[] system_uuid) Sets system uuid- Parameters:
- system_uuid-
 
- 
getUnknown_0044public byte[] getUnknown_0044()Returns 0044 unknown bytes- Returns:
- unknown_0044
 
- 
setUnknown_0044protected void setUnknown_0044(byte[] unknown_0044) Sets 0044 unknown bytes- Parameters:
- unknown_0044-
 
- 
parseDescription copied from interface:ChmAccessorParses chm accessor- Specified by:
- parsein interface- ChmAccessor<ChmItspHeader>
- Parameters:
- data- chm file
- Throws:
- TikaException
 
 
-