public final class SegmentHeader extends BaseStructureHeader
EvioSegment
). It does not contain the raw data, just the
header.Constructor and Description |
---|
SegmentHeader()
Null constructor.
|
SegmentHeader(int tag,
DataType dataType)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getHeaderLength()
Get the length of the structure's header in ints.
|
java.lang.String |
toString()
Obtain a string representation of the segment header.
|
int |
write(java.nio.ByteBuffer byteBuffer)
Write myself out a byte buffer.
|
byteValue, clone, getDataType, getDataTypeName, getDataTypeValue, getLength, getNumber, getPadding, getTag, setDataType, setLength, setNumber, setTag, shortValue
public SegmentHeader()
public SegmentHeader(int tag, DataType dataType)
tag
- the tag for the segment header.dataType
- the data type for the content of the segment.public int getHeaderLength()
getHeaderLength
in class BaseStructureHeader
public java.lang.String toString()
toString
in class BaseStructureHeader
public int write(java.nio.ByteBuffer byteBuffer)
byteBuffer
- the byteBuffer to write to.