com.ibm.tuningfork.tracegen.chunk
Class EventTypeChunk

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.EventTypeChunk

public class EventTypeChunk
extends Chunk


Field Summary
static int EVENT_DATA_OFFSET
           
static int EVENT_TYPE_ID
           
static int EVENT_TYPE_OFFSET
           
private  int numberOfEventTypes
           
 
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
EventTypeChunk()
           
 
Method Summary
 boolean add(EventType et)
           
 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

EVENT_TYPE_ID

public static final int EVENT_TYPE_ID
See Also:
Constant Field Values

EVENT_TYPE_OFFSET

public static final int EVENT_TYPE_OFFSET
See Also:
Constant Field Values

EVENT_DATA_OFFSET

public static final int EVENT_DATA_OFFSET
See Also:
Constant Field Values

numberOfEventTypes

private int numberOfEventTypes
Constructor Detail

EventTypeChunk

public EventTypeChunk()
Method Detail

hasData

public boolean hasData()

add

public boolean add(EventType et)

close

public void close()
Overrides:
close in class Chunk

reset

public void reset()