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
public class Compact64bitInt extends BasicObject
A 9-byte encoding of values in the range 0x0002000000000000 through 0xFFFFFFFFFFFFFFFF
-
-
Field Summary
Fields Modifier and Type Field Description static int
CompactUint14bitType
Specify the type value for compact uint 14 bits type value.static int
CompactUint21bitType
Specify the type value for compact uint 21 bits type value.static int
CompactUint28bitType
Specify the type value for compact uint 28 bits type value.static int
CompactUint35bitType
Specify the type value for compact uint 35 bits type value.static int
CompactUint42bitType
Specify the type value for compact uint 42 bits type value.static int
CompactUint49bitType
Specify the type value for compact uint 49 bits type value.static int
CompactUint64bitType
Specify the type value for compact uint 64 bits type value.static int
CompactUint7bitType
Specify the type value for compact uint 7 bits type value.static int
CompactUintNullType
Specify the type value for compact uint zero type value.
-
Constructor Summary
Constructors Constructor Description Compact64bitInt()
Initializes 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
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 Compact64bitInt basic object from the specified byte array and start index.long
getDecodedValue()
int
getType()
List<Byte>
serializeToByteList()
This method is used to convert the element of Compact64bitInt basic object into a byte List.Compact64bitInt
setDecodedValue(long decodedValue)
Compact64bitInt
setType(int type)
-
Methods inherited from class org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.basic.BasicObject
deserializeFromByteArray, parse
-
-
-
-
Field Detail
-
CompactUintNullType
public static final int CompactUintNullType
Specify the type value for compact uint zero type value.- See Also:
- Constant Field Values
-
CompactUint7bitType
public static final int CompactUint7bitType
Specify the type value for compact uint 7 bits type value.- See Also:
- Constant Field Values
-
CompactUint14bitType
public static final int CompactUint14bitType
Specify the type value for compact uint 14 bits type value.- See Also:
- Constant Field Values
-
CompactUint21bitType
public static final int CompactUint21bitType
Specify the type value for compact uint 21 bits type value.- See Also:
- Constant Field Values
-
CompactUint28bitType
public static final int CompactUint28bitType
Specify the type value for compact uint 28 bits type value.- See Also:
- Constant Field Values
-
CompactUint35bitType
public static final int CompactUint35bitType
Specify the type value for compact uint 35 bits type value.- See Also:
- Constant Field Values
-
CompactUint42bitType
public static final int CompactUint42bitType
Specify the type value for compact uint 42 bits type value.- See Also:
- Constant Field Values
-
CompactUint49bitType
public static final int CompactUint49bitType
Specify the type value for compact uint 49 bits type value.- See Also:
- Constant Field Values
-
CompactUint64bitType
public static final int CompactUint64bitType
Specify the type value for compact uint 64 bits type value.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 Detail
-
serializeToByteList
public List<Byte> serializeToByteList() throws IOException
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
protected int doDeserializeFromByteArray(byte[] byteArray, int startIndex) throws IOException
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
public Compact64bitInt setType(int type)
-
getDecodedValue
public long getDecodedValue()
-
setDecodedValue
public Compact64bitInt setDecodedValue(long decodedValue)
-
-