Package org.apache.tika.parser.chm.lzx
Class ChmSection
- java.lang.Object
-
- org.apache.tika.parser.chm.lzx.ChmSection
-
public class ChmSection extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ChmSection(byte[] data)ChmSection(byte[] data, byte[] prevconent)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcheckBit(int i)java.math.BigIntegergetBigInteger(int i)bytegetByte()byte[]getData()java.math.BigIntegergetEncint()intgetLeft()byte[]getPrevContent()intgetSwath()intgetSyncBits(int bit)intgetTotal()static voidmain(java.lang.String[] args)intpeekBits(int bit)byte[]reverseByteOrder(byte[] toBeReversed)voidsetSwath(int swath)voidsetTotal(int total)byte[]stringToAsciiBytes(java.lang.String s)byte[]unmarshalBytes(int i)intunmarshalInt()intunmarshalUByte()charunmarshalUtfChar()
-
-
-
Constructor Detail
-
ChmSection
public ChmSection(byte[] data) throws TikaException- Throws:
TikaException
-
ChmSection
public ChmSection(byte[] data, byte[] prevconent) throws TikaException- Throws:
TikaException
-
-
Method Detail
-
reverseByteOrder
public byte[] reverseByteOrder(byte[] toBeReversed) throws TikaException- Throws:
TikaException
-
checkBit
public int checkBit(int i)
-
getSyncBits
public int getSyncBits(int bit)
-
peekBits
public int peekBits(int bit)
-
unmarshalUByte
public int unmarshalUByte()
-
getByte
public byte getByte()
-
getLeft
public int getLeft()
-
getData
public byte[] getData()
-
getPrevContent
public byte[] getPrevContent()
-
getBigInteger
public java.math.BigInteger getBigInteger(int i) throws TikaException- Throws:
TikaException
-
stringToAsciiBytes
public byte[] stringToAsciiBytes(java.lang.String s)
-
unmarshalInt
public int unmarshalInt() throws TikaException- Throws:
TikaException
-
unmarshalBytes
public byte[] unmarshalBytes(int i)
-
getEncint
public java.math.BigInteger getEncint()
-
unmarshalUtfChar
public char unmarshalUtfChar()
-
getSwath
public int getSwath()
-
setSwath
public void setSwath(int swath)
-
getTotal
public int getTotal()
-
setTotal
public void setTotal(int total)
-
main
public static void main(java.lang.String[] args) throws TikaException- Parameters:
args-- Throws:
TikaException
-
-