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
public abstract class StreamObjectHeaderStart extends BasicObject
This class specifies the base class for 16-bit or 32-bit stream object header start
-
-
Field Summary
Fields Modifier and Type Field Description protected int
compound
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
headerType
Gets or sets the type of the stream object.protected int
length
static int
STREAM_OBJECT_HEADER_START_16_BIT
Specify for 16-bit stream object header start.static int
STREAM_OBJECT_HEADER_START_32_BIT
Specify for 32-bit stream object header start.StreamObjectTypeHeaderStart
type
-
Constructor Summary
Constructors Modifier Constructor Description protected
StreamObjectHeaderStart()
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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
STREAM_OBJECT_HEADER_START_16_BIT
public static final int STREAM_OBJECT_HEADER_START_16_BIT
Specify for 16-bit stream object header start.- See Also:
- Constant Field Values
-
STREAM_OBJECT_HEADER_START_32_BIT
public static final int STREAM_OBJECT_HEADER_START_32_BIT
Specify for 32-bit stream object header start.- See Also:
- Constant Field Values
-
type
public StreamObjectTypeHeaderStart type
-
headerType
protected int headerType
Gets 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 compound
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. If the bit is zero, it specifies a single object. Otherwise it specifies a compound object.
-
length
protected int length
-
-
Constructor Detail
-
StreamObjectHeaderStart
protected StreamObjectHeaderStart()
Initializes a new instance of the StreamObjectHeaderStart class.
-
StreamObjectHeaderStart
protected StreamObjectHeaderStart(StreamObjectTypeHeaderStart streamObjectTypeHeaderStart)
Initializes a new instance of the StreamObjectHeaderStart class with specified header type.- Parameters:
streamObjectTypeHeaderStart
- Specify the value of the StreamObjectHeaderStart Type.
-
-
Method Detail
-
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.
-
-