Package org.apache.tika.parser.chm.lzx
Class ChmBlockInfo
- java.lang.Object
-
- org.apache.tika.parser.chm.lzx.ChmBlockInfo
-
public class ChmBlockInfo extends java.lang.Object
A container that contains chm block information such as: i. initial block is using to reset main tree ii. start block is using for knowing where to start iii. end block is using for knowing where to stop iv. start offset is using for knowing where to start reading v. end offset is using for knowing where to stop reading
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ChmBlockInfo
getChmBlockInfoInstance(DirectoryListingEntry dle, int bytesPerBlock, ChmLzxcControlData clcd)
Deprecated.static ChmBlockInfo
getChmBlockInfoInstance(DirectoryListingEntry dle, int bytesPerBlock, ChmLzxcControlData clcd, ChmBlockInfo chmBlockInfo)
int
getEndBlock()
Returns the end block indexint
getEndOffset()
Returns the end offset indexint
getIniBlock()
Returns an initial block indexint
getStartBlock()
Returns the start block indexint
getStartOffset()
Returns the start offset indexstatic void
main(java.lang.String[] args)
java.lang.String
toString()
Returns textual representation of ChmBlockInfo
-
-
-
Method Detail
-
getChmBlockInfoInstance
@Deprecated public static ChmBlockInfo getChmBlockInfoInstance(DirectoryListingEntry dle, int bytesPerBlock, ChmLzxcControlData clcd) throws ChmParsingException
Deprecated.- Throws:
ChmParsingException
-
getChmBlockInfoInstance
public static ChmBlockInfo getChmBlockInfoInstance(DirectoryListingEntry dle, int bytesPerBlock, ChmLzxcControlData clcd, ChmBlockInfo chmBlockInfo) throws ChmParsingException
- Throws:
ChmParsingException
-
toString
public java.lang.String toString()
Returns textual representation of ChmBlockInfo- Overrides:
toString
in classjava.lang.Object
-
main
public static void main(java.lang.String[] args)
-
getIniBlock
public int getIniBlock()
Returns an initial block index- Returns:
- int
-
getStartBlock
public int getStartBlock()
Returns the start block index- Returns:
- int
-
getEndBlock
public int getEndBlock()
Returns the end block index- Returns:
- - int
-
getStartOffset
public int getStartOffset()
Returns the start offset index- Returns:
- - int
-
getEndOffset
public int getEndOffset()
Returns the end offset index- Returns:
- - int
-
-