|
||||||||||
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.DirectoryListingEntry
public class 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 | |
---|---|
DirectoryListingEntry()
|
|
DirectoryListingEntry(int name_length,
String name,
ChmCommons.EntryType isCompressed,
int offset,
int length)
Constructs directoryListingEntry |
Method Summary | |
---|---|
ChmCommons.EntryType |
getEntryType()
Returns ChmCommons.EntryType (COMPRESSED or UNCOMPRESSED) |
int |
getLength()
|
String |
getName()
Returns an entry name |
int |
getNameLength()
Returns an entry name length |
int |
getOffset()
|
static void |
main(String[] args)
|
protected void |
setEntryType(ChmCommons.EntryType entryType)
|
protected void |
setLength(int length)
|
protected void |
setName(String name)
Sets entry name |
protected void |
setNameLength(int name_length)
Sets an entry name length |
protected void |
setOffset(int offset)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DirectoryListingEntry()
public DirectoryListingEntry(int name_length, String name, ChmCommons.EntryType isCompressed, int offset, int length) throws TikaException
name_length
- intname
- StringisCompressed
- ChmCommons.EntryTypeoffset
- intlength
- int
TikaException
Method Detail |
---|
public String toString()
toString
in class Object
public int getNameLength()
protected void setNameLength(int name_length)
name_length
- intpublic String getName()
protected void setName(String name)
name
- Stringpublic ChmCommons.EntryType getEntryType()
protected void setEntryType(ChmCommons.EntryType entryType)
public int getOffset()
protected void setOffset(int offset)
public int getLength()
protected void setLength(int length)
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |