public class BinaryItem extends BasicObject
| Modifier and Type | Field and Description |
|---|---|
List<Byte> |
content |
Compact64bitInt |
length |
| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
protected 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.
|
List<Byte> |
serializeToByteList()
This method is used to convert the element of BinaryItem basic object into a byte List.
|
deserializeFromByteArray, parsepublic Compact64bitInt length
public BinaryItem()
public BinaryItem(Collection<Byte> content)
content - Specify the binary content.public List<Byte> serializeToByteList() throws IOException
serializeToByteList in interface IFSSHTTPBSerializableserializeToByteList in class BasicObjectIOExceptionprotected int doDeserializeFromByteArray(byte[] byteArray,
int startIndex)
throws TikaException,
IOException
doDeserializeFromByteArray in class BasicObjectbyteArray - Specify the byte array.startIndex - Specify the start index from the byte array.TikaExceptionIOExceptionCopyright © 2007–2023 The Apache Software Foundation. All rights reserved.