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 SummaryConstructors Constructor Description ChmLzxBlock(int blockNumber, byte[] dataSegment, long blockLength, ChmLzxBlock prevBlock)
 - 
Method SummaryAll 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- 
ChmLzxBlockpublic ChmLzxBlock(int blockNumber, byte[] dataSegment, long blockLength, ChmLzxBlock prevBlock) throws TikaException- Throws:
- TikaException
 
 
- 
 - 
Method Detail- 
getContentLengthprotected int getContentLength() 
 - 
setContentLengthprotected void setContentLength(int contentLength) 
 - 
intelE8Decodingprotected void intelE8Decoding() 
 - 
getContentpublic byte[] getContent() 
 - 
getContentpublic byte[] getContent(int startOffset, int endOffset) throws TikaException- Throws:
- TikaException
 
 - 
getContentpublic byte[] getContent(int start) throws TikaException- Throws:
- TikaException
 
 - 
getBlockNumberpublic int getBlockNumber() 
 - 
getStatepublic ChmLzxState getState() 
 
- 
 
-