EXIficient

com.siemens.ct.exi.datatype.stringtable
Class StringTablePartitionEncoderImpl

java.lang.Object
  extended by com.siemens.ct.exi.datatype.stringtable.StringTablePartitionEncoderImpl
All Implemented Interfaces:
StringTablePartition, StringTablePartitionEncoder

public class StringTablePartitionEncoderImpl
extends java.lang.Object
implements StringTablePartitionEncoder

TODO Description

Version:
0.3.20080718
Author:
Daniel.Peintner.EXT@siemens.com, Joerg.Heuer@siemens.com

Constructor Summary
StringTablePartitionEncoderImpl()
          Create a new string table.
 
Method Summary
 void add(java.lang.String value)
          Add a record to the table
 int getIndex(java.lang.String value)
          Get index of given string value in table.
 int getSize()
          Get the current size (number of strings) in the table.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringTablePartitionEncoderImpl

public StringTablePartitionEncoderImpl()
Create a new string table.

Method Detail

add

public void add(java.lang.String value)
Add a record to the table

Specified by:
add in interface StringTablePartition
Parameters:
value - - value to insert.

getSize

public int getSize()
Get the current size (number of strings) in the table.

Specified by:
getSize in interface StringTablePartition

getIndex

public int getIndex(java.lang.String value)
Get index of given string value in table.

Specified by:
getIndex in interface StringTablePartitionEncoder
Returns:
Index of string in the array or -1 if not found.

EXIficient