Class ChmLzxcResetTable
java.lang.Object
org.apache.tika.parser.microsoft.chm.ChmLzxcResetTable
- All Implemented Interfaces:
Serializable,ChmAccessor<ChmLzxcResetTable>
LZXC reset table For ensuring a decompression. Reads the block named
"::DataSpace/Storage//Transform/
{7FC28940-9D31-11D0-9B27-00A0C91E9C7C}/InstanceData/ResetTable"
.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong[]Returns block addresseslongGets a block countlongGets a block lengthlongGets compressed lengthlongGets a table offsetlongGets uncompressed lengthlongGets unknownlongReturns the versionvoidparse(byte[] data, ChmLzxcResetTable chmLzxcResetTable) Parses chm accessorvoidsetBlockAddress(long[] block_address) Sets block addressesvoidsetBlockCount(long block_count) Sets a block countvoidsetBlockLlen(long block_len) Sets a block lengthvoidsetCompressedLen(long compressed_len) Sets compressed lengthvoidsetTableOffset(long table_offset) Sets a table offsetvoidsetUncompressedLen(long uncompressed_len) Sets uncompressed lengthvoidsetUnknown(long unknown) Sets an unknownvoidsetVersion(long version) Sets the versiontoString()
-
Constructor Details
-
ChmLzxcResetTable
public ChmLzxcResetTable()
-
-
Method Details
-
getBlockAddress
public long[] getBlockAddress()Returns block addresses- Returns:
- block addresses
-
setBlockAddress
public void setBlockAddress(long[] block_address) Sets block addresses- Parameters:
block_address-
-
toString
-
getVersion
public long getVersion()Returns the version- Returns:
- - long
-
setVersion
public void setVersion(long version) Sets the version- Parameters:
version- - long
-
getBlockCount
public long getBlockCount()Gets a block count- Returns:
- - int
-
setBlockCount
public void setBlockCount(long block_count) Sets a block count- Parameters:
block_count- - long
-
getUnknown
public long getUnknown()Gets unknown- Returns:
- - long
-
setUnknown
public void setUnknown(long unknown) Sets an unknown- Parameters:
unknown- - long
-
getTableOffset
public long getTableOffset()Gets a table offset- Returns:
- - long
-
setTableOffset
public void setTableOffset(long table_offset) Sets a table offset- Parameters:
table_offset- - long
-
getUncompressedLen
public long getUncompressedLen()Gets uncompressed length- Returns:
- -
BigInteger
-
setUncompressedLen
public void setUncompressedLen(long uncompressed_len) Sets uncompressed length- Parameters:
uncompressed_len- -BigInteger
-
getCompressedLen
public long getCompressedLen()Gets compressed length- Returns:
- -
BigInteger
-
setCompressedLen
public void setCompressedLen(long compressed_len) Sets compressed length- Parameters:
compressed_len- -BigInteger
-
getBlockLen
public long getBlockLen()Gets a block length- Returns:
- -
BigInteger
-
setBlockLlen
public void setBlockLlen(long block_len) Sets a block length- Parameters:
block_len- -BigInteger
-
parse
Description copied from interface:ChmAccessorParses chm accessor- Specified by:
parsein interfaceChmAccessor<ChmLzxcResetTable>- Parameters:
data- chm file- Throws:
TikaException
-