Class StreamObjectHeaderStart32bit
java.lang.Object
org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.basic.BasicObject
org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.StreamObjectHeaderStart
org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.StreamObjectHeaderStart32bit
- All Implemented Interfaces:
IFSSHTTPBSerializable
An 32-bit header for a compound object would indicate the start of a stream object
-
Field Summary
Modifier and TypeFieldDescriptionGets or sets an optional compact uint64 that specifies the length in bytes for additional data (if any).Fields inherited from class org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.StreamObjectHeaderStart
compound, headerType, length, STREAM_OBJECT_HEADER_START_16_BIT, STREAM_OBJECT_HEADER_START_32_BIT, type
-
Constructor Summary
ConstructorDescriptionInitializes a new instance of the StreamObjectHeaderStart32bit class, this is the default constructor.StreamObjectHeaderStart32bit
(StreamObjectTypeHeaderStart streamObjectTypeHeaderStart) Initializes a new instance of the StreamObjectHeaderStart32bit class with specified type.StreamObjectHeaderStart32bit
(StreamObjectTypeHeaderStart type, int length) Initializes a new instance of the StreamObjectHeaderStart32bit class with specified type and length. -
Method Summary
Modifier and TypeMethodDescriptionprotected int
doDeserializeFromByteArray
(byte[] byteArray, int startIndex) This method is used to deserialize the StreamObjectHeaderStart32bit basic object from the specified byte array and start index.This method is used to convert the element of StreamObjectHeaderStart32bit basic object into a byte List.Methods inherited from class org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.StreamObjectHeaderStart
tryParse
Methods inherited from class org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.basic.BasicObject
deserializeFromByteArray, parse
-
Field Details
-
largeLength
Gets or sets an optional compact uint64 that specifies the length in bytes for additional data (if any). This field MUST be specified if the Length field contains 32767 and MUST NOT be specified if the Length field contains any other value than 32767.
-
-
Constructor Details
-
StreamObjectHeaderStart32bit
Initializes a new instance of the StreamObjectHeaderStart32bit class with specified type and length.- Parameters:
type
- Specify the type of the StreamObjectHeaderStart32bit.length
- Specify the length of the StreamObjectHeaderStart32bit.
-
StreamObjectHeaderStart32bit
public StreamObjectHeaderStart32bit()Initializes a new instance of the StreamObjectHeaderStart32bit class, this is the default constructor. -
StreamObjectHeaderStart32bit
Initializes a new instance of the StreamObjectHeaderStart32bit class with specified type.- Parameters:
streamObjectTypeHeaderStart
- Specify the type of the StreamObjectHeaderStart32bit.
-
-
Method Details
-
serializeToByteList
This method is used to convert the element of StreamObjectHeaderStart32bit 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 StreamObjectHeaderStart32bit.
- Throws:
IOException
-
doDeserializeFromByteArray
protected int doDeserializeFromByteArray(byte[] byteArray, int startIndex) throws IOException, TikaException This method is used to deserialize the StreamObjectHeaderStart32bit 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 StreamObjectHeaderStart32bit basic object.
- Throws:
IOException
TikaException
-