Package org.apache.tika.parser.chm.lzx
Class ChmLzxBlock
- java.lang.Object
-
- org.apache.tika.parser.chm.lzx.ChmLzxBlock
-
public class ChmLzxBlock extends java.lang.Object
Decompresses a chm block. Depending on chm block type chooses most relevant decompressing method. A chm block type can be as follows:- UNDEFINED - no action taken, i.e. skipping the block
- VERBATIM
- ALIGNED_OFFSET
- UNCOMPRESSED the most simplest In addition there are unknown types (4-7). Currently relying on previous chm block these types changing according to the previous chm block type. We need to invent more appropriate way to handle such types.
-
-
Constructor Summary
Constructors Constructor Description ChmLzxBlock(int blockNumber, byte[] dataSegment, long blockLength, ChmLzxBlock prevBlock)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBlockNumber()
byte[]
getContent()
byte[]
getContent(int start)
byte[]
getContent(int startOffset, int endOffset)
ChmLzxState
getState()
-
-
-
Constructor Detail
-
ChmLzxBlock
public ChmLzxBlock(int blockNumber, byte[] dataSegment, long blockLength, ChmLzxBlock prevBlock) throws TikaException
- Throws:
TikaException
-
-
Method Detail
-
getContent
public byte[] getContent()
-
getContent
public byte[] getContent(int startOffset, int endOffset) throws TikaException
- Throws:
TikaException
-
getContent
public byte[] getContent(int start) throws TikaException
- Throws:
TikaException
-
getBlockNumber
public int getBlockNumber()
-
getState
public ChmLzxState getState()
-
-