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, tryGetCurrentpublic 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
TikaExceptionprotected void deserializeItemsFromByteArray(byte[] byteArray,
AtomicInteger currentIndex,
int lengthOfItems)
throws TikaException
deserializeItemsFromByteArray in class StreamObjectbyteArray - A
Byte arraycurrentIndex - Start
positionlengthOfItems - The
length of
the itemsTikaExceptionprotected int serializeItemsToByteList(List<Byte> byteList) throws IOException, TikaException
serializeItemsToByteList in class StreamObjectbyteList - A Byte listIOExceptionTikaExceptionCopyright © 2007–2022 The Apache Software Foundation. All rights reserved.