Class SerialNumber
- java.lang.Object
- 
- org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.basic.BasicObject
- 
- org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.basic.SerialNumber
 
 
- 
- All Implemented Interfaces:
- IFSSHTTPBSerializable
 
 public class SerialNumber extends BasicObject 
- 
- 
Constructor SummaryConstructors Constructor Description SerialNumber()Initializes a new instance of the SerialNumber class, this is default contractorSerialNumber(UUID identifier, long value)Initializes a new instance of the SerialNumber class with specified values.SerialNumber(SerialNumber sn)Initializes a new instance of the SerialNumber class, this is the copy constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intdoDeserializeFromByteArray(byte[] byteArray, int startIndex)This method is used to deserialize the SerialNumber basic object from the specified byte array and start index.List<Byte>serializeToByteList()This method is used to convert the element of SerialNumber basic object into a byte List.- 
Methods inherited from class org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.basic.BasicObjectdeserializeFromByteArray, parse
 
- 
 
- 
- 
- 
Field Detail- 
typepublic int type 
 - 
guidpublic UUID guid 
 - 
valuepublic long value 
 
- 
 - 
Constructor Detail- 
SerialNumberpublic SerialNumber(UUID identifier, long value) Initializes a new instance of the SerialNumber class with specified values.- Parameters:
- identifier- Specify the Guid value of the serialNumber.
- value- Specify the value of the serialNumber.
 
 - 
SerialNumberpublic SerialNumber(SerialNumber sn) Initializes a new instance of the SerialNumber class, this is the copy constructor.- Parameters:
- sn- Specify the serial number where copy from.
 
 - 
SerialNumberpublic SerialNumber() Initializes a new instance of the SerialNumber class, this is default contractor
 
- 
 - 
Method Detail- 
serializeToByteListpublic List<Byte> serializeToByteList() throws IOException This method is used to convert the element of SerialNumber basic object into a byte List.- Specified by:
- serializeToByteListin interface- IFSSHTTPBSerializable
- Specified by:
- serializeToByteListin class- BasicObject
- Returns:
- Return the byte list which store the byte information of SerialNumber.
- Throws:
- IOException
 
 - 
doDeserializeFromByteArrayprotected int doDeserializeFromByteArray(byte[] byteArray, int startIndex) throws IOExceptionThis method is used to deserialize the SerialNumber basic object from the specified byte array and start index.- Specified by:
- doDeserializeFromByteArrayin class- BasicObject
- Parameters:
- byteArray- Specify the byte array.
- startIndex- Specify the start index from the byte array.
- Returns:
- Return the length in byte of the SerialNumber basic object.
- Throws:
- IOException
 
 
- 
 
-