Class ChmLzxcControlData
java.lang.Object
org.apache.tika.parser.microsoft.chm.ChmLzxcControlData
- All Implemented Interfaces:
Serializable
,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:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
Returns reset intervalbyte[]
Returns a signature of control data blocklong
getSize()
Returns a size of control datalong
Returns unknown 18 byteslong
Returns a version of control data blocklong
Returns a window sizelong
Returns windows per resetstatic void
void
parse
(byte[] data, ChmLzxcControlData chmLzxcControlData) Parses chm accessorprotected void
setResetInterval
(long resetInterval) Sets a reset intervalprotected void
setSignature
(byte[] signature) Sets a signature of control data blockprotected void
setSize
(long size) Sets a size of control dataprotected void
setUnknown_18
(long unknown_18) Sets unknown 18 bytesprotected void
setVersion
(long version) Sets version of control data blockprotected void
setWindowSize
(long windowSize) Sets a window sizeprotected void
setWindowsPerReset
(long windowsPerReset) Sets windows per resettoString()
Returns textual representation of ChmLzxcControlData
-
Constructor Details
-
ChmLzxcControlData
public ChmLzxcControlData()
-
-
Method Details
-
main
- Parameters:
args
-
-
getSize
public long getSize()Returns a size of control data- Returns:
- size
-
setSize
protected void setSize(long size) Sets a size of control data- Parameters:
size
-
-
getSignature
public byte[] getSignature()Returns a signature of control data block- Returns:
- signature
-
setSignature
protected void setSignature(byte[] signature) Sets a signature of control data block- Parameters:
signature
-
-
getVersion
public long getVersion()Returns a version of control data block- Returns:
- version
-
setVersion
protected void setVersion(long version) Sets version of control data block- Parameters:
version
-
-
getResetInterval
public long getResetInterval()Returns reset interval- Returns:
- reset_interval
-
setResetInterval
protected void setResetInterval(long resetInterval) Sets a reset interval- Parameters:
resetInterval
-
-
getWindowSize
public long getWindowSize()Returns a window size- Returns:
- window_size
-
setWindowSize
protected void setWindowSize(long windowSize) Sets a window size- Parameters:
windowSize
-
-
getWindowsPerReset
public long getWindowsPerReset()Returns windows per reset- Returns:
-
setWindowsPerReset
protected void setWindowsPerReset(long windowsPerReset) Sets windows per reset- Parameters:
windowsPerReset
-
-
getUnknown_18
public long getUnknown_18()Returns unknown 18 bytes- Returns:
- unknown_18
-
setUnknown_18
protected void setUnknown_18(long unknown_18) Sets unknown 18 bytes- Parameters:
unknown_18
-
-
toString
Returns textual representation of ChmLzxcControlData -
parse
Description copied from interface:ChmAccessor
Parses chm accessor- Specified by:
parse
in interfaceChmAccessor<ChmLzxcControlData>
- Parameters:
data
- chm file- Throws:
TikaException
-