com.ibm.tuningfork.tracegen.chunk
Class StringTableChunk

java.lang.Object
  extended by com.ibm.tuningfork.tracegen.chunk.RawChunk
      extended by com.ibm.tuningfork.tracegen.chunk.Chunk
          extended by com.ibm.tuningfork.tracegen.chunk.StringTableChunk

public class StringTableChunk
extends Chunk


Field Summary
private  int numberOfStrings
           
static int STRING_COUNT_OFFSET
           
static int STRING_DATA_OFFSET
           
static int STRING_TABLE_ID
           
 
Fields inherited from class com.ibm.tuningfork.tracegen.chunk.Chunk
DATA_OFFSET, DEFAULT_CHUNK_SIZE
 
Fields inherited from class com.ibm.tuningfork.tracegen.chunk.RawChunk
ENCODING_SPACE_DOUBLE, ENCODING_SPACE_INT, ENCODING_SPACE_LONG
 
Constructor Summary
StringTableChunk()
           
 
Method Summary
 boolean add(int index, String val)
           
 void close()
           
 boolean hasData()
           
 void reset()
           
 
Methods inherited from class com.ibm.tuningfork.tracegen.chunk.Chunk
getChars, resetImpl
 
Methods inherited from class com.ibm.tuningfork.tracegen.chunk.RawChunk
addByte, addDouble, addDoubleUnchecked, addInt, addIntUnchecked, addLong, addLongUnchecked, addString, addStringInternal, getPosition, hasRoom, putIntAt, seek, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STRING_TABLE_ID

public static final int STRING_TABLE_ID
See Also:
Constant Field Values

STRING_COUNT_OFFSET

public static final int STRING_COUNT_OFFSET
See Also:
Constant Field Values

STRING_DATA_OFFSET

public static final int STRING_DATA_OFFSET
See Also:
Constant Field Values

numberOfStrings

private int numberOfStrings
Constructor Detail

StringTableChunk

public StringTableChunk()
Method Detail

add

public boolean add(int index,
                   String val)

close

public void close()
Overrides:
close in class Chunk

hasData

public boolean hasData()

reset

public void reset()