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 Summary
Constructors 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 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 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.BasicObject
deserializeFromByteArray, parse
-
-
-
-
Field Detail
-
type
public int type
-
guid
public UUID guid
-
value
public long value
-
-
Constructor Detail
-
SerialNumber
public 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.
-
SerialNumber
public 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.
-
SerialNumber
public SerialNumber()
Initializes a new instance of the SerialNumber class, this is default contractor
-
-
Method Detail
-
serializeToByteList
public List<Byte> serializeToByteList() throws IOException
This method is used to convert the element of SerialNumber 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 SerialNumber.
- Throws:
IOException
-
doDeserializeFromByteArray
protected int doDeserializeFromByteArray(byte[] byteArray, int startIndex) throws IOException
This method is used to deserialize the SerialNumber 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 SerialNumber basic object.
- Throws:
IOException
-
-