hotline.iconlib
Class HLIndexTable

java.lang.Object
  |
  +--hotline.iconlib.HLIndexTable

public class HLIndexTable
extends java.lang.Object

this class manages all tables, such as the GIFf-table, the ICON-table, ...

See Also:
developer site

Constructor Summary
HLIndexTable()
          initializes the class variables and allocates memory
 
Method Summary
 void add(hotline.iconlib.HLTable table)
          adds a table (GIFf-, ICON-, ... table)
 hotline.iconlib.HLTable get(int index)
          retrieve a HLTable object at a given index from the index table
 hotline.iconlib.HLTable set(int index, hotline.iconlib.HLTable table)
          replace an HLTable object at a given index in the data table
 int size()
          report the number of elements in the data table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HLIndexTable

public HLIndexTable()
initializes the class variables and allocates memory

Method Detail

add

public void add(hotline.iconlib.HLTable table)
adds a table (GIFf-, ICON-, ... table)

Parameters:
table - table to add, must be a HLTable-object

get

public hotline.iconlib.HLTable get(int index)
retrieve a HLTable object at a given index from the index table

Parameters:
index - index of the table. Note: depending on the hotline.dat version the order may change, therefore you should use no fixed values but the appropriate variables in HLExtractor,
Returns:
the desired HLTable object if it existed, otherwise it returns null
See Also:
HLExtractor

set

public hotline.iconlib.HLTable set(int index,
                                   hotline.iconlib.HLTable table)
replace an HLTable object at a given index in the data table

Parameters:
index - index of the object, if the index is greater or equal to the size of the table, null is returned and nothing else happens
Returns:
the HLTable object that was previously stored at that index - if it existed - otherwise it returns null

size

public int size()
report the number of elements in the data table

Returns:
number of elements in the data table