Class ChmItspHeader
java.lang.Object
org.apache.tika.parser.chm.accessor.ChmItspHeader
- All Implemented Interfaces:
Serializable,ChmAccessor<ChmItspHeader>
@Deprecated(since="2026-04-30")
public class ChmItspHeader
extends Object
implements ChmAccessor<ChmItspHeader>
Deprecated.
This version of the Apache Tika library is deprecated. Use your own version of Apache Tika.
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongDeprecated.Returns block's lengthintDeprecated.Returns block index intervalintDeprecated.Returns header lengthintDeprecated.Returns an index depthintDeprecated.Returns an index headintDeprecated.Returns index rootlongDeprecated.Returns language idlongDeprecated.Returns number of blocksbyte[]Deprecated.Returns a signature of the headerbyte[]Deprecated.Returns system uuidintDeprecated.Returns 000c unknown bytesintDeprecated.Returns 0024 unknown bytesintDeprecated.Returns 002c unknown bytesbyte[]Deprecated.Returns 0044 unknown bytesintDeprecated.Returns version of itsp headervoidparse(byte[] data, ChmItspHeader chmItspHeader) Deprecated.Parses chm accessortoString()Deprecated.
-
Constructor Details
-
ChmItspHeader
public ChmItspHeader()Deprecated.
-
-
Method Details
-
toString
Deprecated. -
getSignature
public byte[] getSignature()Deprecated.Returns a signature of the header- Returns:
- itsp signature
-
getVersion
public int getVersion()Deprecated.Returns version of itsp header- Returns:
- version
-
getHeader_len
public int getHeader_len()Deprecated.Returns header length- Returns:
- header length
-
getUnknown_000c
public int getUnknown_000c()Deprecated.Returns 000c unknown bytes -
getBlock_len
public long getBlock_len()Deprecated.Returns block's length- Returns:
- block_length
-
getBlockidx_intvl
public int getBlockidx_intvl()Deprecated.Returns block index interval- Returns:
- blockidx_intvl
-
getIndex_depth
public int getIndex_depth()Deprecated.Returns an index depth- Returns:
- index_depth
-
getIndex_root
public int getIndex_root()Deprecated.Returns index root- Returns:
- index_root
-
getIndex_head
public int getIndex_head()Deprecated.Returns an index head- Returns:
- index_head
-
getUnknown_0024
public int getUnknown_0024()Deprecated.Returns 0024 unknown bytes- Returns:
- unknown_0024
-
getNum_blocks
public long getNum_blocks()Deprecated.Returns number of blocks- Returns:
- num_blocks
-
getUnknown_002c
public int getUnknown_002c()Deprecated.Returns 002c unknown bytes- Returns:
- unknown_002c
-
getLang_id
public long getLang_id()Deprecated.Returns language id- Returns:
- lang_id
-
getSystem_uuid
public byte[] getSystem_uuid()Deprecated.Returns system uuid- Returns:
- system_uuid
-
getUnknown_0044
public byte[] getUnknown_0044()Deprecated.Returns 0044 unknown bytes- Returns:
- unknown_0044
-
parse
Deprecated.Description copied from interface:ChmAccessorParses chm accessor- Specified by:
parsein interfaceChmAccessor<ChmItspHeader>- Parameters:
data- chm filechmItspHeader-- Throws:
TikaException
-