Class DirectoryListingEntry
- java.lang.Object
-
- org.apache.tika.parser.chm.accessor.DirectoryListingEntry
-
public class DirectoryListingEntry extends java.lang.ObjectThe 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
Constructors Constructor Description DirectoryListingEntry()DirectoryListingEntry(int name_length, java.lang.String name, ChmCommons.EntryType isCompressed, int offset, int length)Constructs directoryListingEntry
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChmCommons.EntryTypegetEntryType()Returns ChmCommons.EntryType (COMPRESSED or UNCOMPRESSED)intgetLength()java.lang.StringgetName()Returns an entry nameintgetNameLength()Returns an entry name lengthintgetOffset()java.lang.StringtoString()
-
-
-
Constructor Detail
-
DirectoryListingEntry
public DirectoryListingEntry()
-
DirectoryListingEntry
public DirectoryListingEntry(int name_length, java.lang.String name, ChmCommons.EntryType isCompressed, int offset, int length) throws TikaExceptionConstructs directoryListingEntry- Parameters:
name_length- intname- StringisCompressed- ChmCommons.EntryTypeoffset- intlength- int- Throws:
TikaException
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getNameLength
public int getNameLength()
Returns an entry name length- Returns:
- int
-
getName
public java.lang.String getName()
Returns an entry name- Returns:
- String
-
getEntryType
public ChmCommons.EntryType getEntryType()
Returns ChmCommons.EntryType (COMPRESSED or UNCOMPRESSED)- Returns:
- ChmCommons.EntryType
-
getOffset
public int getOffset()
-
getLength
public int getLength()
-
-