Class StreamObjectHeaderStart
java.lang.Object
org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.basic.BasicObject
org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.StreamObjectHeaderStart
- All Implemented Interfaces:
IFSSHTTPBSerializable
- Direct Known Subclasses:
StreamObjectHeaderStart16bit
,StreamObjectHeaderStart32bit
This class specifies the base class for 16-bit or 32-bit stream object header start
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
Gets or sets a value that specifies if set a compound parse type is needed and MUST be ended with either an 8-bit stream object header end or a 16-bit stream object header end.protected int
Gets or sets the type of the stream object.protected int
static final int
Specify for 16-bit stream object header start.static final int
Specify for 32-bit stream object header start. -
Constructor Summary
ModifierConstructorDescriptionprotected
Initializes a new instance of the StreamObjectHeaderStart class.protected
StreamObjectHeaderStart
(StreamObjectTypeHeaderStart streamObjectTypeHeaderStart) Initializes a new instance of the StreamObjectHeaderStart class with specified header type. -
Method Summary
Modifier and TypeMethodDescriptionstatic int
tryParse
(byte[] byteArray, int startIndex, AtomicReference<StreamObjectHeaderStart> streamObjectHeader) This method is used to parse the actual 16bit or 32bit stream header.Methods inherited from class org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.basic.BasicObject
deserializeFromByteArray, doDeserializeFromByteArray, parse, serializeToByteList
-
Field Details
-
STREAM_OBJECT_HEADER_START_16_BIT
public static final int STREAM_OBJECT_HEADER_START_16_BITSpecify for 16-bit stream object header start.- See Also:
-
STREAM_OBJECT_HEADER_START_32_BIT
public static final int STREAM_OBJECT_HEADER_START_32_BITSpecify for 32-bit stream object header start.- See Also:
-
type
-
headerType
protected int headerTypeGets or sets the type of the stream object. value 0 for 16-bit stream object header start, value 2 for 32-bit stream object header start. -
compound
protected int compoundGets or sets a value that specifies if set a compound parse type is needed and MUST be ended with either an 8-bit stream object header end or a 16-bit stream object header end. If the bit is zero, it specifies a single object. Otherwise it specifies a compound object. -
length
protected int length
-
-
Constructor Details
-
StreamObjectHeaderStart
protected StreamObjectHeaderStart()Initializes a new instance of the StreamObjectHeaderStart class. -
StreamObjectHeaderStart
Initializes a new instance of the StreamObjectHeaderStart class with specified header type.- Parameters:
streamObjectTypeHeaderStart
- Specify the value of the StreamObjectHeaderStart Type.
-
-
Method Details
-
tryParse
public static int tryParse(byte[] byteArray, int startIndex, AtomicReference<StreamObjectHeaderStart> streamObjectHeader) This method is used to parse the actual 16bit or 32bit stream header.- Parameters:
byteArray
- Specify the Byte array.startIndex
- Specify the start position.streamObjectHeader
- Specify the out value for the parse result.- Returns:
- Return true if success, otherwise returns false.
-