|
||||||||||
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.ChmPmgiHeader
public class ChmPmgiHeader
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
://translated.by/you/microsoft-s-html-help-chm-format-incomplete/original
/?show-translation-form=1
Constructor Summary | |
---|---|
ChmPmgiHeader()
|
Method Summary | |
---|---|
long |
getFreeSpace()
Returns pmgi free space |
byte[] |
getSignature()
Returns pmgi signature if exists |
static void |
main(java.lang.String[] args)
|
void |
parse(byte[] data,
ChmPmgiHeader chmPmgiHeader)
Parses chm accessor |
protected void |
setFreeSpace(long free_space)
Sets pmgi free space |
protected void |
setSignature(byte[] signature)
Sets pmgi signature |
java.lang.String |
toString()
Returns textual representation of the pmgi header |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ChmPmgiHeader()
Method Detail |
---|
public byte[] getSignature()
protected void setSignature(byte[] signature)
signature
- public long getFreeSpace()
protected void setFreeSpace(long free_space)
free_space
- public java.lang.String toString()
toString
in class java.lang.Object
public void parse(byte[] data, ChmPmgiHeader chmPmgiHeader) throws TikaException
ChmAccessor
parse
in interface ChmAccessor<ChmPmgiHeader>
data
- chm file
TikaException
public static void main(java.lang.String[] args)
args
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |