Class Compact64bitInt
java.lang.Object
org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.basic.BasicObject
org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.basic.Compact64bitInt
- All Implemented Interfaces:
IFSSHTTPBSerializable
A 9-byte encoding of values in the range 0x0002000000000000 through 0xFFFFFFFFFFFFFFFF
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Specify the type value for compact uint 14 bits type value.static final int
Specify the type value for compact uint 21 bits type value.static final int
Specify the type value for compact uint 28 bits type value.static final int
Specify the type value for compact uint 35 bits type value.static final int
Specify the type value for compact uint 42 bits type value.static final int
Specify the type value for compact uint 49 bits type value.static final int
Specify the type value for compact uint 64 bits type value.static final int
Specify the type value for compact uint 7 bits type value.static final int
Specify the type value for compact uint zero type value. -
Constructor Summary
ConstructorDescriptionInitializes a new instance of the Compact64bitInt class, this is the default constructor.Compact64bitInt
(long decodedValue) Initializes a new instance of the Compact64bitInt class with specified value. -
Method Summary
Modifier and TypeMethodDescriptionprotected int
doDeserializeFromByteArray
(byte[] byteArray, int startIndex) This method is used to deserialize the Compact64bitInt basic object from the specified byte array and start index.long
int
getType()
This method is used to convert the element of Compact64bitInt basic object into a byte List.setDecodedValue
(long decodedValue) setType
(int type) Methods inherited from class org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.basic.BasicObject
deserializeFromByteArray, parse
-
Field Details
-
CompactUintNullType
public static final int CompactUintNullTypeSpecify the type value for compact uint zero type value.- See Also:
-
CompactUint7bitType
public static final int CompactUint7bitTypeSpecify the type value for compact uint 7 bits type value.- See Also:
-
CompactUint14bitType
public static final int CompactUint14bitTypeSpecify the type value for compact uint 14 bits type value.- See Also:
-
CompactUint21bitType
public static final int CompactUint21bitTypeSpecify the type value for compact uint 21 bits type value.- See Also:
-
CompactUint28bitType
public static final int CompactUint28bitTypeSpecify the type value for compact uint 28 bits type value.- See Also:
-
CompactUint35bitType
public static final int CompactUint35bitTypeSpecify the type value for compact uint 35 bits type value.- See Also:
-
CompactUint42bitType
public static final int CompactUint42bitTypeSpecify the type value for compact uint 42 bits type value.- See Also:
-
CompactUint49bitType
public static final int CompactUint49bitTypeSpecify the type value for compact uint 49 bits type value.- See Also:
-
CompactUint64bitType
public static final int CompactUint64bitTypeSpecify the type value for compact uint 64 bits type value.- See Also:
-
-
Constructor Details
-
Compact64bitInt
public Compact64bitInt(long decodedValue) Initializes a new instance of the Compact64bitInt class with specified value.- Parameters:
decodedValue
- Decoded value
-
Compact64bitInt
public Compact64bitInt()Initializes a new instance of the Compact64bitInt class, this is the default constructor.
-
-
Method Details
-
serializeToByteList
This method is used to convert the element of Compact64bitInt 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 Compact64bitInt.
- Throws:
IOException
-
doDeserializeFromByteArray
This method is used to deserialize the Compact64bitInt 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 Compact64bitInt basic object.
- Throws:
IOException
-
getType
public int getType() -
setType
-
getDecodedValue
public long getDecodedValue() -
setDecodedValue
-