com.ibm.tuningfork.tracegen.chunk
Class Chunk

java.lang.Object
  extended by com.ibm.tuningfork.tracegen.chunk.RawChunk
      extended by com.ibm.tuningfork.tracegen.chunk.Chunk
Direct Known Subclasses:
EventChunk, EventTypeChunk, EventTypeSpaceChunk, FeedletChunk, PropertyTableChunk, SpaceDescriptorChunk, StringTableChunk

public abstract class Chunk
extends RawChunk


Field Summary
private static int CHUNK_TYPE_OFFSET
           
protected static int DATA_OFFSET
           
protected static int DEFAULT_CHUNK_SIZE
           
private static int LENGTH_OFFSET
           
private static int MAGIC_WORD_1
           
private static int MAGIC_WORD_2
           
 
Fields inherited from class com.ibm.tuningfork.tracegen.chunk.RawChunk
ENCODING_SPACE_DOUBLE, ENCODING_SPACE_INT, ENCODING_SPACE_LONG
 
Constructor Summary
protected Chunk(int chunkType)
           
protected Chunk(int chunkType, byte[] buffer)
           
protected Chunk(int chunkType, int capacity)
           
 
Method Summary
 void close()
           
protected  char[] getChars(String s)
           
protected  void 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

MAGIC_WORD_1

private static final int MAGIC_WORD_1
See Also:
Constant Field Values

MAGIC_WORD_2

private static final int MAGIC_WORD_2
See Also:
Constant Field Values

LENGTH_OFFSET

private static final int LENGTH_OFFSET
See Also:
Constant Field Values

CHUNK_TYPE_OFFSET

private static final int CHUNK_TYPE_OFFSET
See Also:
Constant Field Values

DATA_OFFSET

protected static final int DATA_OFFSET
See Also:
Constant Field Values

DEFAULT_CHUNK_SIZE

protected static final int DEFAULT_CHUNK_SIZE
See Also:
Constant Field Values
Constructor Detail

Chunk

protected Chunk(int chunkType,
                byte[] buffer)

Chunk

protected Chunk(int chunkType,
                int capacity)

Chunk

protected Chunk(int chunkType)
Method Detail

close

public void close()
Overrides:
close in class RawChunk

resetImpl

protected void resetImpl()
Overrides:
resetImpl in class RawChunk

getChars

protected char[] getChars(String s)