public abstract class StreamObjectHeaderStart extends BasicObject
Modifier and Type | Field and 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 |
Modifier | Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
static int |
tryParse(byte[] byteArray,
int startIndex,
AtomicReference<StreamObjectHeaderStart> streamObjectHeader)
This method is used to parse the actual 16bit or 32bit stream header.
|
deserializeFromByteArray, doDeserializeFromByteArray, parse, serializeToByteList
public static final int STREAM_OBJECT_HEADER_START_16_BIT
public static final int STREAM_OBJECT_HEADER_START_32_BIT
public StreamObjectTypeHeaderStart type
protected int headerType
protected int compound
protected int length
protected StreamObjectHeaderStart()
protected StreamObjectHeaderStart(StreamObjectTypeHeaderStart streamObjectTypeHeaderStart)
streamObjectTypeHeaderStart
- Specify the value of the StreamObjectHeaderStart Type.public static int tryParse(byte[] byteArray, int startIndex, AtomicReference<StreamObjectHeaderStart> streamObjectHeader)
byteArray
- Specify the Byte array.startIndex
- Specify the start position.streamObjectHeader
- Specify the out value for the parse result.Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.