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.
|
tryParsedeserializeFromByteArray, parsepublic StreamObjectHeaderStart16bit(StreamObjectTypeHeaderStart type, int length) throws TikaException
type - Specify the type of the StreamObjectHeaderStart16bit.length - Specify the length of the StreamObjectHeaderStart16bit.TikaExceptionpublic StreamObjectHeaderStart16bit(StreamObjectTypeHeaderStart type) throws TikaException
type - Specify the type of the StreamObjectHeaderStart16bit.TikaExceptionpublic StreamObjectHeaderStart16bit()
public List<Byte> serializeToByteList() throws IOException
serializeToByteList in interface IFSSHTTPBSerializableserializeToByteList in class BasicObjectIOExceptionpublic short ToUint16()
throws IOException
IOExceptionprotected int doDeserializeFromByteArray(byte[] byteArray,
int startIndex)
throws IOException,
TikaException
doDeserializeFromByteArray in class BasicObjectbyteArray - Specify the byte array.startIndex - Specify the start index from the byte array.IOExceptionTikaExceptionCopyright © 2007–2023 The Apache Software Foundation. All rights reserved.