Class DirectoryListingEntry
- java.lang.Object
- 
- org.apache.tika.parser.microsoft.chm.DirectoryListingEntry
 
- 
 public class DirectoryListingEntry extends Object 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 SummaryConstructors Constructor Description DirectoryListingEntry()DirectoryListingEntry(int name_length, String name, ChmCommons.EntryType isCompressed, int offset, int length)Constructs directoryListingEntry
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ChmCommons.EntryTypegetEntryType()Returns ChmCommons.EntryType (COMPRESSED or UNCOMPRESSED)intgetLength()StringgetName()Returns an entry nameintgetNameLength()Returns an entry name lengthintgetOffset()protected voidsetEntryType(ChmCommons.EntryType entryType)protected voidsetLength(int length)protected voidsetName(String name)Sets entry nameprotected voidsetNameLength(int name_length)Sets an entry name lengthprotected voidsetOffset(int offset)StringtoString()
 
- 
- 
- 
Constructor Detail- 
DirectoryListingEntrypublic DirectoryListingEntry() 
 - 
DirectoryListingEntrypublic DirectoryListingEntry(int name_length, String name, ChmCommons.EntryType isCompressed, int offset, int length) throws TikaExceptionConstructs directoryListingEntry- Parameters:
- name_length- int
- name- String
- isCompressed- ChmCommons.EntryType
- offset- int
- length- int
- Throws:
- TikaException
 
 
- 
 - 
Method Detail- 
getNameLengthpublic int getNameLength() Returns an entry name length- Returns:
- int
 
 - 
setNameLengthprotected void setNameLength(int name_length) Sets an entry name length- Parameters:
- name_length- int
 
 - 
getNamepublic String getName() Returns an entry name- Returns:
- String
 
 - 
setNameprotected void setName(String name) Sets entry name- Parameters:
- name- String
 
 - 
getEntryTypepublic ChmCommons.EntryType getEntryType() Returns ChmCommons.EntryType (COMPRESSED or UNCOMPRESSED)- Returns:
- ChmCommons.EntryType
 
 - 
setEntryTypeprotected void setEntryType(ChmCommons.EntryType entryType) 
 - 
getOffsetpublic int getOffset() 
 - 
setOffsetprotected void setOffset(int offset) 
 - 
getLengthpublic int getLength() 
 - 
setLengthprotected void setLength(int length) 
 
- 
 
-