Class ChmLzxcResetTable
- java.lang.Object
-
- org.apache.tika.parser.chm.accessor.ChmLzxcResetTable
-
- All Implemented Interfaces:
Serializable
,ChmAccessor<ChmLzxcResetTable>
public class ChmLzxcResetTable extends Object implements 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChmLzxcResetTable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long[]
getBlockAddress()
Returns block addresseslong
getBlockCount()
Gets a block countlong
getBlockLen()
Gets a block lengthlong
getCompressedLen()
Gets compressed lengthlong
getTableOffset()
Gets a table offsetlong
getUncompressedLen()
Gets uncompressed lengthlong
getUnknown()
Gets unknownlong
getVersion()
Returns the versionvoid
parse(byte[] data, ChmLzxcResetTable chmLzxcResetTable)
Parses chm accessorvoid
setBlockAddress(long[] block_address)
Sets block addressesvoid
setBlockCount(long block_count)
Sets a block countvoid
setBlockLlen(long block_len)
Sets a block lengthvoid
setCompressedLen(long compressed_len)
Sets compressed lengthvoid
setTableOffset(long table_offset)
Sets a table offsetvoid
setUncompressedLen(long uncompressed_len)
Sets uncompressed lengthvoid
setUnknown(long unknown)
Sets an unknownvoid
setVersion(long version)
Sets the versionString
toString()
-
-
-
Method Detail
-
getBlockAddress
public long[] getBlockAddress()
Returns block addresses- Returns:
- block addresses
-
setBlockAddress
public void setBlockAddress(long[] block_address)
Sets block addresses- Parameters:
block_address
-
-
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
public void parse(byte[] data, ChmLzxcResetTable chmLzxcResetTable) throws TikaException
Description copied from interface:ChmAccessor
Parses chm accessor- Specified by:
parse
in interfaceChmAccessor<ChmLzxcResetTable>
- Parameters:
data
- chm file- Throws:
TikaException
-
-