Class ChmDirectoryListingSet
- java.lang.Object
-
- org.apache.tika.parser.chm.accessor.ChmDirectoryListingSet
-
public class ChmDirectoryListingSet extends Object
Holds chm listing entries
-
-
Constructor Summary
Constructors Constructor Description ChmDirectoryListingSet(byte[] data, ChmItsfHeader chmItsHeader, ChmItspHeader chmItspHeader)
Constructs chm directory listing set
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getControlDataIndex()
Returns control data index that located in Listlong
getDataOffset()
Returns data offsetList<DirectoryListingEntry>
getDirectoryListingEntryList()
Returns chm directory listing entry listint
getResetTableIndex()
Return index of reset tableprotected void
setControlDataIndex(int controlDataIndex)
Sets control data indexvoid
setDirectoryListingEntryList(List<DirectoryListingEntry> dlel)
Sets chm directory listing entry listprotected void
setResetTableIndex(int resetTableIndex)
Sets reset table indexstatic boolean
startsWith(byte[] data, String prefix)
String
toString()
-
-
-
Constructor Detail
-
ChmDirectoryListingSet
public ChmDirectoryListingSet(byte[] data, ChmItsfHeader chmItsHeader, ChmItspHeader chmItspHeader) throws TikaException
Constructs chm directory listing set- Parameters:
data
- byte[]chmItsHeader
-chmItspHeader
-- Throws:
TikaException
-
-
Method Detail
-
getControlDataIndex
public int getControlDataIndex()
Returns control data index that located in List- Returns:
- control data index
-
setControlDataIndex
protected void setControlDataIndex(int controlDataIndex)
Sets control data index- Parameters:
controlDataIndex
-
-
getResetTableIndex
public int getResetTableIndex()
Return index of reset table- Returns:
- reset table index
-
setResetTableIndex
protected void setResetTableIndex(int resetTableIndex)
Sets reset table index- Parameters:
resetTableIndex
-
-
startsWith
public static final boolean startsWith(byte[] data, String prefix)
-
setDirectoryListingEntryList
public void setDirectoryListingEntryList(List<DirectoryListingEntry> dlel)
Sets chm directory listing entry list- Parameters:
dlel
- chm directory listing entry list
-
getDirectoryListingEntryList
public List<DirectoryListingEntry> getDirectoryListingEntryList()
Returns chm directory listing entry list- Returns:
- List
-
getDataOffset
public long getDataOffset()
Returns data offset- Returns:
- dataOffset
-
-