Class ChmItsfHeader
java.lang.Object
org.apache.tika.parser.chm.accessor.ChmItsfHeader
- All Implemented Interfaces:
Serializable,ChmAccessor<ChmItsfHeader>
The Header 0000: char[4] 'ITSF' 0004: DWORD 3 (Version number) 0008: DWORD
Total header length, including header section table and following data. 000C:
DWORD 1 (unknown) 0010: DWORD a timestamp 0014: DWORD Windows Language ID
0018: GUID {7C01FD10-7BAA-11D0-9E0C-00A0-C922-E6EC} 0028: GUID
{7C01FD11-7BAA-11D0-9E0C-00A0-C922-E6EC} Note: a GUID is $10 bytes, arranged
as 1 DWORD, 2 WORDs, and 8 BYTEs. 0000: QWORD Offset of section from
beginning of file 0008: QWORD Length of section Following the header section
table is 8 bytes of additional header data. In Version 2 files, this data is
not there and the content section starts immediately after the directory.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns data offsetbyte[]Returns directory uuidlongReturns directory lengthlongReturns directory offsetintReturns itsf header lengthlongReturns language IDlongReturns last modified date of the chm filebyte[]Returns a signature of itsf headerbyte[]Returns stream uuidintReturns unknown_00c valuelongReturns unknown lengthlongReturns unknown offsetintReturns itsf header versionstatic voidvoidparse(byte[] data, ChmItsfHeader chmItsfHeader) Parses chm accessortoString()Prints the values of ChmfHeader
-
Constructor Details
-
ChmItsfHeader
public ChmItsfHeader()
-
-
Method Details
-
toString
Prints the values of ChmfHeader -
getSignature
public byte[] getSignature()Returns a signature of itsf header- Returns:
- itsf header
-
getVersion
public int getVersion()Returns itsf header version- Returns:
- itsf version
-
getHeaderLen
public int getHeaderLen()Returns itsf header length- Returns:
- length
-
getUnknown_000c
public int getUnknown_000c()Returns unknown_00c value- Returns:
- unknown_00c
-
getLastModified
public long getLastModified()Returns last modified date of the chm file- Returns:
- last modified date as long
-
getLangId
public long getLangId()Returns language ID- Returns:
- language_id
-
getDir_uuid
public byte[] getDir_uuid()Returns directory uuid- Returns:
- dir_uuid
-
getStream_uuid
public byte[] getStream_uuid()Returns stream uuid- Returns:
- stream_uuid
-
getUnknownOffset
public long getUnknownOffset()Returns unknown offset- Returns:
- unknown_offset
-
getUnknownLen
public long getUnknownLen()Returns unknown length- Returns:
- unknown_length
-
getDirOffset
public long getDirOffset()Returns directory offset- Returns:
- directory_offset
-
getDirLen
public long getDirLen()Returns directory length- Returns:
- directory_offset
-
getDataOffset
public long getDataOffset()Returns data offset- Returns:
- data_offset
-
main
-
parse
Description copied from interface:ChmAccessorParses chm accessor- Specified by:
parsein interfaceChmAccessor<ChmItsfHeader>- Parameters:
data- chm filechmItsfHeader-- Throws:
TikaException
-