Class BinaryItem
java.lang.Object
org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.basic.BasicObject
org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.basic.BinaryItem
- All Implemented Interfaces:
IFSSHTTPBSerializable
-
Field Summary
-
Constructor Summary
ConstructorDescriptionInitializes a new instance of the BinaryItem class.BinaryItem
(Collection<Byte> content) Initializes a new instance of the BinaryItem class with the specified content. -
Method Summary
Modifier and TypeMethodDescriptionprotected int
doDeserializeFromByteArray
(byte[] byteArray, int startIndex) This method is used to de-serialize the BinaryItem basic object from the specified byte array and start index.This method is used to convert the element of BinaryItem basic object into a byte List.Methods inherited from class org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.basic.BasicObject
deserializeFromByteArray, parse
-
Field Details
-
length
-
-
-
Constructor Details
-
BinaryItem
public BinaryItem()Initializes a new instance of the BinaryItem class. -
BinaryItem
Initializes a new instance of the BinaryItem class with the specified content.- Parameters:
content
- Specify the binary content.
-
-
Method Details
-
serializeToByteList
This method is used to convert the element of BinaryItem basic object into a byte List.- Specified by:
serializeToByteList
in interfaceIFSSHTTPBSerializable
- Specified by:
serializeToByteList
in classBasicObject
- Returns:
- Return the byte list which store the byte information of BinaryItem.
- Throws:
IOException
-
doDeserializeFromByteArray
protected int doDeserializeFromByteArray(byte[] byteArray, int startIndex) throws TikaException, IOException This method is used to de-serialize the BinaryItem basic object from the specified byte array and start index.- Specified by:
doDeserializeFromByteArray
in classBasicObject
- Parameters:
byteArray
- Specify the byte array.startIndex
- Specify the start index from the byte array.- Returns:
- Return the length in byte of the BinaryItem basic object.
- Throws:
TikaException
IOException
-