public abstract class BasicObject extends Object implements IFSSHTTPBSerializable
Constructor and Description |
---|
BasicObject() |
Modifier and Type | Method and Description |
---|---|
int |
deserializeFromByteArray(byte[] byteArray,
int startIndex)
Used to return the length of this element.
|
protected abstract int |
doDeserializeFromByteArray(byte[] byteArray,
int startIndex)
Used to return the length of this element.
|
static <T extends BasicObject> |
parse(byte[] byteArray,
AtomicInteger index,
Class<T> clazz)
Used to parse byte array to special object.
|
abstract List<Byte> |
serializeToByteList()
Used to serialize item to byte list.
|
public static <T extends BasicObject> T parse(byte[] byteArray, AtomicInteger index, Class<T> clazz) throws TikaException, IOException
byteArray
- The byte array contains raw data.index
- The index special where to start.TikaException
IOException
public int deserializeFromByteArray(byte[] byteArray, int startIndex) throws TikaException, IOException
byteArray
- The byte list.startIndex
- The start position.TikaException
IOException
public abstract List<Byte> serializeToByteList() throws IOException
serializeToByteList
in interface IFSSHTTPBSerializable
IOException
protected abstract int doDeserializeFromByteArray(byte[] byteArray, int startIndex) throws IOException, TikaException
byteArray
- The byte list.startIndex
- The start position.IOException
TikaException
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.