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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionlongReturns reset intervalbyte[]Returns a signature of control data blocklonggetSize()Returns a size of control datalongReturns unknown 18 byteslongReturns a version of control data blocklongReturns a window sizelongReturns windows per resetstatic voidvoidparse(byte[] data, ChmLzxcControlData chmLzxcControlData) Parses chm accessorprotected voidsetResetInterval(long resetInterval) Sets a reset intervalprotected voidsetSignature(byte[] signature) Sets a signature of control data blockprotected voidsetSize(long size) Sets a size of control dataprotected voidsetUnknown_18(long unknown_18) Sets unknown 18 bytesprotected voidsetVersion(long version) Sets version of control data blockprotected voidsetWindowSize(long windowSize) Sets a window sizeprotected voidsetWindowsPerReset(long windowsPerReset) Sets windows per resettoString()Returns textual representation of ChmLzxcControlData
- 
Constructor Details- 
ChmLzxcControlDatapublic ChmLzxcControlData()
 
- 
- 
Method Details- 
main- Parameters:
- args-
 
- 
getSizepublic long getSize()Returns a size of control data- Returns:
- size
 
- 
setSizeprotected void setSize(long size) Sets a size of control data- Parameters:
- size-
 
- 
getSignaturepublic byte[] getSignature()Returns a signature of control data block- Returns:
- signature
 
- 
setSignatureprotected void setSignature(byte[] signature) Sets a signature of control data block- Parameters:
- signature-
 
- 
getVersionpublic long getVersion()Returns a version of control data block- Returns:
- version
 
- 
setVersionprotected void setVersion(long version) Sets version of control data block- Parameters:
- version-
 
- 
getResetIntervalpublic long getResetInterval()Returns reset interval- Returns:
- reset_interval
 
- 
setResetIntervalprotected void setResetInterval(long resetInterval) Sets a reset interval- Parameters:
- resetInterval-
 
- 
getWindowSizepublic long getWindowSize()Returns a window size- Returns:
- window_size
 
- 
setWindowSizeprotected void setWindowSize(long windowSize) Sets a window size- Parameters:
- windowSize-
 
- 
getWindowsPerResetpublic long getWindowsPerReset()Returns windows per reset- Returns:
 
- 
setWindowsPerResetprotected void setWindowsPerReset(long windowsPerReset) Sets windows per reset- Parameters:
- windowsPerReset-
 
- 
getUnknown_18public long getUnknown_18()Returns unknown 18 bytes- Returns:
- unknown_18
 
- 
setUnknown_18protected void setUnknown_18(long unknown_18) Sets unknown 18 bytes- Parameters:
- unknown_18-
 
- 
toStringReturns textual representation of ChmLzxcControlData
- 
parseDescription copied from interface:ChmAccessorParses chm accessor- Specified by:
- parsein interface- ChmAccessor<ChmLzxcControlData>
- Parameters:
- data- chm file
- Throws:
- TikaException
 
 
-