Class BasicObject
- java.lang.Object
- 
- org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.basic.BasicObject
 
- 
- All Implemented Interfaces:
- IFSSHTTPBSerializable
 - Direct Known Subclasses:
- BinaryItem,- CellID,- CellIDArray,- Compact64bitInt,- ExGuid,- ExGUIDArray,- SerialNumber,- StreamObjectHeaderEnd,- StreamObjectHeaderStart
 
 public abstract class BasicObject extends Object implements IFSSHTTPBSerializable Base object for FSSHTTPB.
- 
- 
Constructor SummaryConstructors Constructor Description BasicObject()
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intdeserializeFromByteArray(byte[] byteArray, int startIndex)Used to return the length of this element.protected abstract intdoDeserializeFromByteArray(byte[] byteArray, int startIndex)Used to return the length of this element.static <T extends BasicObject>
 Tparse(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.
 
- 
- 
- 
Method Detail- 
parsepublic static <T extends BasicObject> T parse(byte[] byteArray, AtomicInteger index, Class<T> clazz) throws TikaException, IOException Used to parse byte array to special object.- Parameters:
- byteArray- The byte array contains raw data.
- index- The index special where to start.
- Returns:
- The instance of target object.
- Throws:
- TikaException
- IOException
 
 - 
deserializeFromByteArraypublic int deserializeFromByteArray(byte[] byteArray, int startIndex) throws TikaException, IOExceptionUsed to return the length of this element.- Parameters:
- byteArray- The byte list.
- startIndex- The start position.
- Returns:
- The element length.
- Throws:
- TikaException
- IOException
 
 - 
serializeToByteListpublic abstract List<Byte> serializeToByteList() throws IOException Used to serialize item to byte list.- Specified by:
- serializeToByteListin interface- IFSSHTTPBSerializable
- Returns:
- The byte list.
- Throws:
- IOException
 
 - 
doDeserializeFromByteArrayprotected abstract int doDeserializeFromByteArray(byte[] byteArray, int startIndex) throws IOException, TikaExceptionUsed to return the length of this element.- Parameters:
- byteArray- The byte list.
- startIndex- The start position.
- Returns:
- The element length
- Throws:
- IOException
- TikaException
 
 
- 
 
-