Class ExGuid
- java.lang.Object
-
- org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.basic.BasicObject
-
- org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.basic.ExGuid
-
- All Implemented Interfaces:
IFSSHTTPBSerializable
public class ExGuid extends BasicObject
-
-
Field Summary
Fields Modifier and Type Field Description static int
ExtendedGUID10BitUintType
Specify the extended GUID 10 Bit int type value.static int
ExtendedGUID17BitUintType
Specify the extended GUID 17 Bit int type value.static int
ExtendedGUID32BitUintType
Specify the extended GUID 32 Bit int type value.static int
ExtendedGUID5BitUintType
Specify the extended GUID 5 Bit int type value.static int
ExtendedGUIDNullType
Specify the extended GUID null type value.UUID
guid
int
type
int
value
-
Constructor Summary
Constructors Constructor Description ExGuid()
Initializes a new instance of the ExGuid class, this is a default constructor.ExGuid(int value, UUID identifier)
Initializes a new instance of the ExGuid class with specified value.ExGuid(ExGuid guid2)
Initializes a new instance of the ExGuid 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 ExGuid basic object from the specified byte array and start index.boolean
equals(Object obj)
Override the Equals method.int
hashCode()
Override the GetHashCode.List<Byte>
serializeToByteList()
This method is used to convert the element of ExGuid basic object into a byte List.-
Methods inherited from class org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.basic.BasicObject
deserializeFromByteArray, parse
-
-
-
-
Field Detail
-
ExtendedGUIDNullType
public static final int ExtendedGUIDNullType
Specify the extended GUID null type value.- See Also:
- Constant Field Values
-
ExtendedGUID5BitUintType
public static final int ExtendedGUID5BitUintType
Specify the extended GUID 5 Bit int type value.- See Also:
- Constant Field Values
-
ExtendedGUID10BitUintType
public static final int ExtendedGUID10BitUintType
Specify the extended GUID 10 Bit int type value.- See Also:
- Constant Field Values
-
ExtendedGUID17BitUintType
public static final int ExtendedGUID17BitUintType
Specify the extended GUID 17 Bit int type value.- See Also:
- Constant Field Values
-
ExtendedGUID32BitUintType
public static final int ExtendedGUID32BitUintType
Specify the extended GUID 32 Bit int type value.- See Also:
- Constant Field Values
-
type
public int type
-
value
public int value
-
guid
public UUID guid
-
-
Constructor Detail
-
ExGuid
public ExGuid(int value, UUID identifier)
Initializes a new instance of the ExGuid class with specified value.- Parameters:
value
- Specify the ExGUID Value.identifier
- Specify the ExGUID GUID value.
-
ExGuid
public ExGuid(ExGuid guid2)
Initializes a new instance of the ExGuid class, this is the copy constructor.- Parameters:
guid2
- Specify the ExGuid instance where copies from.
-
ExGuid
public ExGuid()
Initializes a new instance of the ExGuid class, this is a default constructor.
-
-
Method Detail
-
serializeToByteList
public List<Byte> serializeToByteList() throws IOException
This method is used to convert the element of ExGuid 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 ExGuid.
- Throws:
IOException
-
equals
public boolean equals(Object obj)
Override the Equals method.
-
hashCode
public int hashCode()
Override the GetHashCode.
-
doDeserializeFromByteArray
protected int doDeserializeFromByteArray(byte[] byteArray, int startIndex) throws IOException
This method is used to deserialize the ExGuid 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 ExGuid basic object.
- Throws:
IOException
-
-