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
public class BinaryItem extends BasicObject
-
-
Field Summary
Fields Modifier and Type Field Description List<Byte>contentCompact64bitIntlength
-
Constructor Summary
Constructors Constructor Description BinaryItem()Initializes 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intdoDeserializeFromByteArray(byte[] byteArray, int startIndex)This method is used to de-serialize the BinaryItem basic object from the specified byte array and start index.List<Byte>serializeToByteList()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 Detail
-
length
public Compact64bitInt length
-
-
Constructor Detail
-
BinaryItem
public BinaryItem()
Initializes a new instance of the BinaryItem class.
-
BinaryItem
public BinaryItem(Collection<Byte> content)
Initializes a new instance of the BinaryItem class with the specified content.- Parameters:
content- Specify the binary content.
-
-
Method Detail
-
serializeToByteList
public List<Byte> serializeToByteList() throws IOException
This method is used to convert the element of BinaryItem basic object into a byte List.- Specified by:
serializeToByteListin interfaceIFSSHTTPBSerializable- Specified by:
serializeToByteListin 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, IOExceptionThis method is used to de-serialize the BinaryItem basic object from the specified byte array and start index.- Specified by:
doDeserializeFromByteArrayin 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:
TikaExceptionIOException
-
-