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
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the DataElement class.DataElement(DataElementType type, DataElementData data) Initializes a new instance of the DataElement class. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddeserializeItemsFromByteArray(byte[] byteArray, AtomicInteger currentIndex, int lengthOfItems) Used to de-serialize the element.<T extends DataElementData>
TUsed to get data.protected intserializeItemsToByteList(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 Details
-
dataElementExGuid
-
serialNumber
-
dataElementType
-
data
-
-
Constructor Details
-
DataElement
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 Details
-
getData
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:
deserializeItemsFromByteArrayin classStreamObject- Parameters:
byteArray- A Byte arraycurrentIndex- Start positionlengthOfItems- The length of the items- Throws:
TikaException
-
serializeItemsToByteList
Used to convert the element into a byte List.- Specified by:
serializeItemsToByteListin classStreamObject- Parameters:
byteList- A Byte list- Returns:
- The element length
- Throws:
IOExceptionTikaException
-