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.TikaExceptionIOExceptionpublic int deserializeFromByteArray(byte[] byteArray,
int startIndex)
throws TikaException,
IOException
byteArray - The byte list.startIndex - The start position.TikaExceptionIOExceptionpublic abstract List<Byte> serializeToByteList() throws IOException
serializeToByteList in interface IFSSHTTPBSerializableIOExceptionprotected abstract int doDeserializeFromByteArray(byte[] byteArray,
int startIndex)
throws IOException,
TikaException
byteArray - The byte list.startIndex - The start position.IOExceptionTikaExceptionCopyright © 2007–2023 The Apache Software Foundation. All rights reserved.