Class ChmLzxcControlData
- java.lang.Object
-
- org.apache.tika.parser.chm.accessor.ChmLzxcControlData
-
- All Implemented Interfaces:
java.io.Serializable,ChmAccessor<ChmLzxcControlData>
public class ChmLzxcControlData extends java.lang.Object implements ChmAccessor<ChmLzxcControlData>
::DataSpace/Storage//ControlData This file contains $20 bytes of information on the compression. The information is partially known: 0000: DWORD 6 (unknown) 0004: ASCII 'LZXC' Compression type identifier 0008: DWORD 2 (Possibly numeric code for LZX) 000C: DWORD The Huffman reset interval in $8000-byte blocks 0010: DWORD The window size in $8000-byte blocks 0014: DWORD unknown (sometimes 2, sometimes 1, sometimes 0) 0018: DWORD 0 (unknown) 001C: DWORD 0 (unknown) - See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChmLzxcControlData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetResetInterval()Returns reset intervalbyte[]getSignature()Returns a signature of control data blocklonggetSize()Returns a size of control datalonggetUnknown_18()Returns unknown 18 byteslonggetVersion()Returns a version of control data blocklonggetWindowSize()Returns a window sizelonggetWindowsPerReset()Returns windows per resetstatic voidmain(java.lang.String[] args)voidparse(byte[] data, ChmLzxcControlData chmLzxcControlData)Parses chm accessorjava.lang.StringtoString()Returns textual representation of ChmLzxcControlData
-
-
-
Method Detail
-
getSize
public long getSize()
Returns a size of control data- Returns:
- size
-
getSignature
public byte[] getSignature()
Returns a signature of control data block- Returns:
- signature
-
getVersion
public long getVersion()
Returns a version of control data block- Returns:
- version
-
getResetInterval
public long getResetInterval()
Returns reset interval- Returns:
- reset_interval
-
getWindowSize
public long getWindowSize()
Returns a window size- Returns:
- window_size
-
getWindowsPerReset
public long getWindowsPerReset()
Returns windows per reset- Returns:
-
getUnknown_18
public long getUnknown_18()
Returns unknown 18 bytes- Returns:
- unknown_18
-
toString
public java.lang.String toString()
Returns textual representation of ChmLzxcControlData- Overrides:
toStringin classjava.lang.Object
-
parse
public void parse(byte[] data, ChmLzxcControlData chmLzxcControlData) throws TikaExceptionDescription copied from interface:ChmAccessorParses chm accessor- Specified by:
parsein interfaceChmAccessor<ChmLzxcControlData>- Parameters:
data- chm file- Throws:
TikaException
-
main
public static void main(java.lang.String[] args)
- Parameters:
args-
-
-