Class ChmPmgiHeader
java.lang.Object
org.apache.tika.parser.chm.accessor.ChmPmgiHeader
- All Implemented Interfaces:
Serializable,ChmAccessor<ChmPmgiHeader>
@Deprecated(since="2026-04-30")
public class ChmPmgiHeader
extends Object
implements ChmAccessor<ChmPmgiHeader>
Deprecated.
This version of the Apache Tika library is deprecated. Use your own version of Apache Tika.
Description Note: not always exists An index chunk has the following format:
0000: char[4] 'PMGI' 0004: DWORD Length of quickref/free area at end of
directory chunk 0008: Directory index entries (to quickref/free area) The
quickref area in an PMGI is the same as in an PMGL The format of a directory
index entry is as follows: BYTE: length of name BYTEs: name (UTF-8 encoded)
ENCINT: directory listing chunk which starts with name Encoded Integers aka
ENCINT An ENCINT is a variable-length integer. The high bit of each byte
indicates "continued to the next byte". Bytes are stored most significant to
least significant. So, for example, $EA $15 is (((0xEA&0x7F)<<7)|0x15) =
0x3515.
Note: This class is not in use
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongDeprecated.Returns pmgi free spacebyte[]Deprecated.Returns pmgi signature if existsvoidparse(byte[] data, ChmPmgiHeader chmPmgiHeader) Deprecated.Parses chm accessortoString()Deprecated.Returns textual representation of the pmgi header
-
Constructor Details
-
ChmPmgiHeader
public ChmPmgiHeader()Deprecated.
-
-
Method Details
-
getSignature
public byte[] getSignature()Deprecated.Returns pmgi signature if exists- Returns:
- signature
-
getFreeSpace
public long getFreeSpace()Deprecated.Returns pmgi free space- Returns:
- free_space
-
toString
Deprecated.Returns textual representation of the pmgi header -
parse
Deprecated.Description copied from interface:ChmAccessorParses chm accessor- Specified by:
parsein interfaceChmAccessor<ChmPmgiHeader>- Parameters:
data- chm filechmPmgiHeader-- Throws:
TikaException
-