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, parse
public Compact64bitInt length
public BinaryItem()
public BinaryItem(Collection<Byte> content)
content
- Specify the binary content.public List<Byte> serializeToByteList() throws IOException
serializeToByteList
in interface IFSSHTTPBSerializable
serializeToByteList
in class BasicObject
IOException
protected int doDeserializeFromByteArray(byte[] byteArray, int startIndex) throws TikaException, IOException
doDeserializeFromByteArray
in class BasicObject
byteArray
- Specify the byte array.startIndex
- Specify the start index from the byte array.TikaException
IOException
Copyright © 2007–1969 The Apache Software Foundation. All rights reserved.