org.apache.tika.parser.chm.accessor
Class ChmLzxcResetTable

java.lang.Object
  extended by 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" . ://translated.by/you/microsoft-s-html-help-chm-format-incomplete/original /?page=2

See Also:
Serialized Form

Constructor Summary
ChmLzxcResetTable()
           
 
Method Summary
 long[] getBlockAddress()
          Returns block addresses
 long getBlockCount()
          Gets a block count
 long getBlockLen()
          Gets a block length
 long getCompressedLen()
          Gets compressed length
 long getTableOffset()
          Gets a table offset
 long getUncompressedLen()
          Gets uncompressed length
 long getUnknown()
          Gets unknown
 long getVersion()
          Returns the version
static void main(String[] args)
           
 void parse(byte[] data, ChmLzxcResetTable chmLzxcResetTable)
          Parses chm accessor
 void setBlockAddress(long[] block_address)
          Sets block addresses
 void setBlockCount(long block_count)
          Sets a block count
 void setBlockLlen(long block_len)
          Sets a block length
 void setCompressedLen(long compressed_len)
          Sets compressed length
 void setTableOffset(long table_offset)
          Sets a table offset
 void setUncompressedLen(long uncompressed_len)
          Sets uncompressed length
 void setUnknown(long unknown)
          Sets an unknown
 void setVersion(long version)
          Sets the version
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChmLzxcResetTable

public ChmLzxcResetTable()
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 -

toString

public String toString()
Overrides:
toString in class Object

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

main

public static void main(String[] args)
Parameters:
args -

parse

public void parse(byte[] data,
                  ChmLzxcResetTable chmLzxcResetTable)
           throws TikaException
Description copied from interface: ChmAccessor
Parses chm accessor

Specified by:
parse in interface ChmAccessor<ChmLzxcResetTable>
Parameters:
data - chm file
Throws:
TikaException


Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.