public class EvioSegment extends BaseStructure
SegementHeader
) and the raw data stored as an
byte array.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELEMENT_NAME
The XML record tag for a segment.
|
badStringFormat, byteOrder, charData, children, compositeData, doubleData, floatData, header, intData, isLeaf, lengthsUpToDate, longData, numberDataItems, rawBytes, shortData, stringData, stringEnd, stringsList, xmlContentAttributeName, xmlElementName, xmlIndent
Constructor and Description |
---|
EvioSegment()
Null constructor creates an empty SegmentHeader.
|
EvioSegment(int tag,
DataType dataType)
This is the general constructor to use for a Segment.
|
EvioSegment(SegmentHeader segmentHeader)
Constructor using a provided SegmentHeader
|
Modifier and Type | Method and Description |
---|---|
StructureType |
getStructureType()
This implements the abstract method from
BaseStructure . |
java.lang.String |
getXMLElementName()
Get the element name for the bank for writing to XML.
|
void |
toXML(javax.xml.stream.XMLStreamWriter xmlWriter)
Write this segment structure out as an XML record.
|
void |
toXML(javax.xml.stream.XMLStreamWriter xmlWriter,
boolean hex)
Write this segment structure out as an XML record.
|
appendByteData, appendByteData, appendCompositeData, appendDoubleData, appendDoubleData, appendFloatData, appendFloatData, appendIntData, appendIntData, appendLongData, appendLongData, appendShortData, appendShortData, appendStringData, appendStringData, children, childrenToXML, clone, commonXMLClose, commonXMLDataWrite, commonXMLStart, dataLength, decreaseXmlIndent, getAllowsChildren, getByteData, getByteOrder, getChildAt, getChildCount, getChildren, getChildrenList, getCompositeData, getDescription, getDoubleData, getFloatData, getHeader, getIndex, getIntData, getLongData, getMatchingStructures, getNumberDataItems, getParent, getRawBytes, getShortData, getStringData, getTotalBytes, increaseXmlIndent, insert, insert, isContainer, isLeaf, isSwap, lengthsUpToDate, lengthsUpToDate, remove, remove, removeFromParent, setAllHeaderLengths, setByteData, setByteData, setByteOrder, setCompositeData, setDoubleData, setDoubleData, setFloatData, setFloatData, setIntData, setIntData, setLongData, setLongData, setParent, setRawBytes, setShortData, setShortData, setStringData, setUserObject, setXmlIndent, setXmlNames, stringsToRawBytes, stringsToRawSize, toString, toXML, toXML, transform, unpackRawBytesToStrings, unpackRawBytesToStrings, unpackRawBytesToStrings, vistAllStructures, vistAllStructures, write
public static final java.lang.String ELEMENT_NAME
public EvioSegment()
SegmentHeader
public EvioSegment(SegmentHeader segmentHeader)
segmentHeader
- the header to use.SegmentHeader
public EvioSegment(int tag, DataType dataType)
tag
- the tag for the segment header.dataType
- the (enum) data type for the content of the segment.public StructureType getStructureType()
BaseStructure
. It is a convenience method use instead of
"instanceof" to see what type of structure we have. Note: this returns the type of this structure, not the type
of data this structure holds.getStructureType
in interface IEvioStructure
getStructureType
in class BaseStructure
StructureType
of this structure, which is a StructureType.SEGMENT.StructureType
public void toXML(javax.xml.stream.XMLStreamWriter xmlWriter)
toXML
in class BaseStructure
xmlWriter
- the writer used to write the events.public void toXML(javax.xml.stream.XMLStreamWriter xmlWriter, boolean hex)
toXML
in class BaseStructure
xmlWriter
- the writer used to write the events.hex
- if true, ints get displayed in hexadecimalpublic java.lang.String getXMLElementName()
getXMLElementName
in class BaseStructure