Class DirectoryListingEntry
java.lang.Object
org.apache.tika.parser.microsoft.chm.DirectoryListingEntry
The format of a directory listing entry is as follows: BYTE: length of name
BYTEs: name (UTF-8 encoded) ENCINT: content section ENCINT: offset ENCINT:
length The offset is from the beginning of the content section the file is
in, after the section has been decompressed (if appropriate). The length also
refers to length of the file in the section after decompression. There are
two kinds of file represented in the directory: user data and format related
files. The files which are format-related have names which begin with '::',
the user data files have names which begin with "/".
-
Constructor Summary
ConstructorDescriptionDirectoryListingEntry
(int name_length, String name, ChmCommons.EntryType isCompressed, int offset, int length) Constructs directoryListingEntry -
Method Summary
Modifier and TypeMethodDescriptionReturns ChmCommons.EntryType (COMPRESSED or UNCOMPRESSED)int
getName()
Returns an entry nameint
Returns an entry name lengthint
protected void
setEntryType
(ChmCommons.EntryType entryType) protected void
setLength
(int length) protected void
Sets entry nameprotected void
setNameLength
(int name_length) Sets an entry name lengthprotected void
setOffset
(int offset) toString()
-
Constructor Details
-
DirectoryListingEntry
public DirectoryListingEntry() -
DirectoryListingEntry
public DirectoryListingEntry(int name_length, String name, ChmCommons.EntryType isCompressed, int offset, int length) throws TikaException Constructs directoryListingEntry- Parameters:
name_length
- intname
- StringisCompressed
- ChmCommons.EntryTypeoffset
- intlength
- int- Throws:
TikaException
-
-
Method Details
-
toString
-
getNameLength
public int getNameLength()Returns an entry name length- Returns:
- int
-
setNameLength
protected void setNameLength(int name_length) Sets an entry name length- Parameters:
name_length
- int
-
getName
Returns an entry name- Returns:
- String
-
setName
Sets entry name- Parameters:
name
- String
-
getEntryType
Returns ChmCommons.EntryType (COMPRESSED or UNCOMPRESSED)- Returns:
- ChmCommons.EntryType
-
setEntryType
-
getOffset
public int getOffset() -
setOffset
protected void setOffset(int offset) -
getLength
public int getLength() -
setLength
protected void setLength(int length)
-