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 Details

    • Method Details

      • 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()