Class CellIDArray
- java.lang.Object
-
- org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.basic.BasicObject
-
- org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.basic.CellIDArray
-
- All Implemented Interfaces:
IFSSHTTPBSerializable
public class CellIDArray extends BasicObject
-
-
Constructor Summary
Constructors Constructor Description CellIDArray()
Initializes a new instance of the CellIDArray class, this is default constructor.CellIDArray(long count, List<CellID> content)
Initializes a new instance of the CellIDArray class.CellIDArray(CellIDArray cellIdArray)
Initializes a new instance of the CellIDArray class, this is copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
doDeserializeFromByteArray(byte[] byteArray, int startIndex)
This method is used to deserialize the CellIDArray basic object from the specified byte array and start index.List<Byte>
serializeToByteList()
This method is used to convert the element of CellIDArray basic object into a byte List.-
Methods inherited from class org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.basic.BasicObject
deserializeFromByteArray, parse
-
-
-
-
Constructor Detail
-
CellIDArray
public CellIDArray(long count, List<CellID> content)
Initializes a new instance of the CellIDArray class.- Parameters:
count
- Specify the number of CellID in the CellID array.content
- Specify the list of CellID.
-
CellIDArray
public CellIDArray(CellIDArray cellIdArray)
Initializes a new instance of the CellIDArray class, this is copy constructor.- Parameters:
cellIdArray
- Specify the CellIDArray.
-
CellIDArray
public CellIDArray()
Initializes a new instance of the CellIDArray class, this is default constructor.
-
-
Method Detail
-
serializeToByteList
public List<Byte> serializeToByteList() throws IOException
This method is used to convert the element of CellIDArray basic object into a byte List.- Specified by:
serializeToByteList
in interfaceIFSSHTTPBSerializable
- Specified by:
serializeToByteList
in classBasicObject
- Returns:
- Return the byte list which store the byte information of CellIDArray.
- Throws:
IOException
-
doDeserializeFromByteArray
protected int doDeserializeFromByteArray(byte[] byteArray, int startIndex) throws TikaException, IOException
This method is used to deserialize the CellIDArray basic object from the specified byte array and start index.- Specified by:
doDeserializeFromByteArray
in classBasicObject
- Parameters:
byteArray
- Specify the byte array.startIndex
- Specify the start index from the byte array.- Returns:
- Return the length in byte of the CellIDArray basic object.
- Throws:
TikaException
IOException
-
-