public class DataElement extends StreamObject
Modifier and Type | Field and Description |
---|---|
DataElementData |
data |
ExGuid |
dataElementExGuid |
DataElementType |
dataElementType |
SerialNumber |
serialNumber |
Constructor and Description |
---|
DataElement()
Initializes a new instance of the DataElement class.
|
DataElement(DataElementType type,
DataElementData data)
Initializes a new instance of the DataElement class.
|
Modifier and Type | Method and Description |
---|---|
protected void |
deserializeItemsFromByteArray(byte[] byteArray,
AtomicInteger currentIndex,
int lengthOfItems)
Used to de-serialize the element.
|
<T extends DataElementData> |
getData(Class<T> clazz)
Used to get data.
|
protected int |
serializeItemsToByteList(List<Byte> byteList)
Used to convert the element into a byte List.
|
deserializeFromByteArray, getCompoundTypes, getCurrent, getStreamObjectTypeMapping, parseStreamObject, serializeToByteList, tryGetCurrent
public ExGuid dataElementExGuid
public SerialNumber serialNumber
public DataElementType dataElementType
public DataElementData data
public DataElement(DataElementType type, DataElementData data)
type
- data
element type
*data
- Specifies
the data
of the
element .public DataElement()
public <T extends DataElementData> T getData(Class<T> clazz) throws TikaException
TikaException
protected void deserializeItemsFromByteArray(byte[] byteArray, AtomicInteger currentIndex, int lengthOfItems) throws TikaException
deserializeItemsFromByteArray
in class StreamObject
byteArray
- A
Byte arraycurrentIndex
- Start
positionlengthOfItems
- The
length of
the itemsTikaException
protected int serializeItemsToByteList(List<Byte> byteList) throws IOException, TikaException
serializeItemsToByteList
in class StreamObject
byteList
- A Byte listIOException
TikaException
Copyright © 2007–1969 The Apache Software Foundation. All rights reserved.