Class DataElement
- java.lang.Object
-
- org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.StreamObject
-
- org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.DataElement
-
- All Implemented Interfaces:
IFSSHTTPBSerializable
public class DataElement extends StreamObject
-
-
Field Summary
Fields Modifier and Type Field Description DataElementData
data
ExGuid
dataElementExGuid
DataElementType
dataElementType
SerialNumber
serialNumber
-
Constructor Summary
Constructors Constructor Description DataElement()
Initializes a new instance of the DataElement class.DataElement(DataElementType type, DataElementData data)
Initializes a new instance of the DataElement class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
deserializeItemsFromByteArray(byte[] byteArray, AtomicInteger currentIndex, int lengthOfItems)
Used to de-serialize the element.<T extends DataElementData>
TgetData(Class<T> clazz)
Used to get data.protected int
serializeItemsToByteList(List<Byte> byteList)
Used to convert the element into a byte List.-
Methods inherited from class org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.StreamObject
deserializeFromByteArray, getCompoundTypes, getCurrent, getStreamObjectTypeMapping, parseStreamObject, serializeToByteList, tryGetCurrent
-
-
-
-
Field Detail
-
dataElementExGuid
public ExGuid dataElementExGuid
-
serialNumber
public SerialNumber serialNumber
-
dataElementType
public DataElementType dataElementType
-
data
public DataElementData data
-
-
Constructor Detail
-
DataElement
public DataElement(DataElementType type, DataElementData data)
Initializes a new instance of the DataElement class.- Parameters:
type
- data element type *data
- Specifies the data of the element .
-
DataElement
public DataElement()
Initializes a new instance of the DataElement class.
-
-
Method Detail
-
getData
public <T extends DataElementData> T getData(Class<T> clazz) throws TikaException
Used to get data.- Returns:
- Data of the element
- Throws:
TikaException
-
deserializeItemsFromByteArray
protected void deserializeItemsFromByteArray(byte[] byteArray, AtomicInteger currentIndex, int lengthOfItems) throws TikaException
Used to de-serialize the element.- Specified by:
deserializeItemsFromByteArray
in classStreamObject
- Parameters:
byteArray
- A Byte arraycurrentIndex
- Start positionlengthOfItems
- The length of the items- Throws:
TikaException
-
serializeItemsToByteList
protected int serializeItemsToByteList(List<Byte> byteList) throws IOException, TikaException
Used to convert the element into a byte List.- Specified by:
serializeItemsToByteList
in classStreamObject
- Parameters:
byteList
- A Byte list- Returns:
- The element length
- Throws:
IOException
TikaException
-
-