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
-
Field Summary
-
Constructor Summary
ConstructorDescriptionInitializes 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.Initializes a new instance of the SerialNumber class, this is the copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected int
doDeserializeFromByteArray
(byte[] byteArray, int startIndex) This method is used to deserialize the SerialNumber basic object from the specified byte array and start index.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 Details
-
type
public int type -
guid
-
value
public long value
-
-
Constructor Details
-
SerialNumber
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
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 Details
-
serializeToByteList
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
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
-