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.
|
protected void |
toArray(byte[] bArray,
int offset,
java.nio.ByteOrder order)
Write myself out as a byte array of evio format data
into the given byte array in the specified byte order.
|
java.lang.String |
toString()
Obtain a string representation of the bank header.
|
int |
write(java.nio.ByteBuffer byteBuffer)
Write myself out a byte buffer.
|
byteValue, clone, getDataType, getDataTypeName, getDataTypeValue, getLength, getNumber, getPadding, getTag, setDataType, setDataType, setLength, setNumber, setPadding, 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
protected void toArray(byte[] bArray, int offset, java.nio.ByteOrder order)
toArray
in class BaseStructureHeader
bArray
- array into which evio data is written (destination).offset
- offset into bArray at which to write.order
- byte order in which to write the data.public java.lang.String toString()
toString
in class BaseStructureHeader
public int write(java.nio.ByteBuffer byteBuffer)
byteBuffer
- the byteBuffer to write to.