org.apache.tika.parser.chm.lzx
Class ChmBlockInfo

java.lang.Object
  extended by org.apache.tika.parser.chm.lzx.ChmBlockInfo

public class ChmBlockInfo
extends Object

A container that contains chm block information such as: i. initial block is using to reset main tree ii. start block is using for knowing where to start iii. end block is using for knowing where to stop iv. start offset is using for knowing where to start reading v. end offset is using for knowing where to stop reading


Method Summary
static ChmBlockInfo getChmBlockInfo()
           
protected  ChmBlockInfo getChmBlockInfo(DirectoryListingEntry dle, int bytesPerBlock, ChmLzxcControlData clcd, ChmBlockInfo chmBlockInfo)
          Returns an information related to the chmBlockInfo
static ChmBlockInfo getChmBlockInfoInstance(DirectoryListingEntry dle, int bytesPerBlock, ChmLzxcControlData clcd)
           
 int getEndBlock()
          Returns the end block index
 int getEndOffset()
          Returns the end offset index
 int getIniBlock()
          Returns an initial block index
 int getStartBlock()
          Returns the start block index
 int getStartOffset()
          Returns the start offset index
static void main(String[] args)
           
static void setChmBlockInfo(ChmBlockInfo chmBlockInfo)
           
 String toString()
          Returns textual representation of ChmBlockInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getChmBlockInfo

protected ChmBlockInfo getChmBlockInfo(DirectoryListingEntry dle,
                                       int bytesPerBlock,
                                       ChmLzxcControlData clcd,
                                       ChmBlockInfo chmBlockInfo)
                                throws TikaException
Returns an information related to the chmBlockInfo

Parameters:
dle - - DirectoryListingEntry
bytesPerBlock - - int, = chmLzxcResetTable.block_length
clcd - - ChmLzxcControlData
chmBlockInfo - - ChmBlockInfo
Returns:
ChmBlockInfo
Throws:
TikaException

getChmBlockInfoInstance

public static ChmBlockInfo getChmBlockInfoInstance(DirectoryListingEntry dle,
                                                   int bytesPerBlock,
                                                   ChmLzxcControlData clcd)

toString

public String toString()
Returns textual representation of ChmBlockInfo

Overrides:
toString in class Object

main

public static void main(String[] args)

getIniBlock

public int getIniBlock()
Returns an initial block index

Returns:
int

getStartBlock

public int getStartBlock()
Returns the start block index

Returns:
int

getEndBlock

public int getEndBlock()
Returns the end block index

Returns:
- int

getStartOffset

public int getStartOffset()
Returns the start offset index

Returns:
- int

getEndOffset

public int getEndOffset()
Returns the end offset index

Returns:
- int

setChmBlockInfo

public static void setChmBlockInfo(ChmBlockInfo chmBlockInfo)

getChmBlockInfo

public static ChmBlockInfo getChmBlockInfo()


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