Class ChmLzxBlock
- java.lang.Object
 - 
- org.apache.tika.parser.microsoft.chm.ChmLzxBlock
 
 
- 
public class ChmLzxBlock extends 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 intgetBlockNumber()byte[]getContent()byte[]getContent(int start)byte[]getContent(int startOffset, int endOffset)protected intgetContentLength()ChmLzxStategetState()protected voidintelE8Decoding()protected voidsetContentLength(int contentLength) 
 - 
 
- 
- 
Constructor Detail
- 
ChmLzxBlock
public ChmLzxBlock(int blockNumber, byte[] dataSegment, long blockLength, ChmLzxBlock prevBlock) throws TikaException- Throws:
 TikaException
 
 - 
 
- 
Method Detail
- 
getContentLength
protected int getContentLength()
 
- 
setContentLength
protected void setContentLength(int contentLength)
 
- 
intelE8Decoding
protected void intelE8Decoding()
 
- 
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()
 
 - 
 
 -