public class StreamObjectHeaderStart16bit extends StreamObjectHeaderStart
compound, headerType, length, STREAM_OBJECT_HEADER_START_16_BIT, STREAM_OBJECT_HEADER_START_32_BIT, type
Constructor and Description |
---|
StreamObjectHeaderStart16bit()
Initializes a new instance of the StreamObjectHeaderStart16bit class, this is the default constructor.
|
StreamObjectHeaderStart16bit(StreamObjectTypeHeaderStart type)
Initializes a new instance of the StreamObjectHeaderStart16bit class with specified type.
|
StreamObjectHeaderStart16bit(StreamObjectTypeHeaderStart type,
int length)
Initializes a new instance of the StreamObjectHeaderStart16bit class with specified type and length.
|
Modifier and Type | Method and Description |
---|---|
protected int |
doDeserializeFromByteArray(byte[] byteArray,
int startIndex)
This method is used to deserialize the StreamObjectHeaderStart16bit basic object from the
specified byte array and start index.
|
List<Byte> |
serializeToByteList()
This method is used to convert the element of StreamObjectHeaderStart16bit basic object into a byte List.
|
short |
ToUint16()
This method is used to get the Uint16 value of the 16bit stream object header.
|
tryParse
deserializeFromByteArray, parse
public StreamObjectHeaderStart16bit(StreamObjectTypeHeaderStart type, int length) throws TikaException
type
- Specify the type of the StreamObjectHeaderStart16bit.length
- Specify the length of the StreamObjectHeaderStart16bit.TikaException
public StreamObjectHeaderStart16bit(StreamObjectTypeHeaderStart type) throws TikaException
type
- Specify the type of the StreamObjectHeaderStart16bit.TikaException
public StreamObjectHeaderStart16bit()
public List<Byte> serializeToByteList() throws IOException
serializeToByteList
in interface IFSSHTTPBSerializable
serializeToByteList
in class BasicObject
IOException
public short ToUint16() throws IOException
IOException
protected int doDeserializeFromByteArray(byte[] byteArray, int startIndex) throws IOException, TikaException
doDeserializeFromByteArray
in class BasicObject
byteArray
- Specify the byte array.startIndex
- Specify the start index from the byte array.IOException
TikaException
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.