public class StreamObjectHeaderEnd16bit extends StreamObjectHeaderEnd
Constructor and Description |
---|
StreamObjectHeaderEnd16bit()
Initializes a new instance of the StreamObjectHeaderEnd16bit class, this is the default constructor.
|
StreamObjectHeaderEnd16bit(int type)
Initializes a new instance of the StreamObjectHeaderEnd16bit class with the specified type value.
|
StreamObjectHeaderEnd16bit(StreamObjectTypeHeaderEnd headerType)
Initializes a new instance of the StreamObjectHeaderEnd16bit class with the specified type value.
|
Modifier and Type | Method and Description |
---|---|
protected int |
doDeserializeFromByteArray(byte[] byteArray,
int startIndex)
This method is used to deserialize the StreamObjectHeaderEnd16bit basic object from the
specified byte array and start index.
|
List<Byte> |
serializeToByteList()
This method is used to convert the element of StreamObjectHeaderEnd16bit basic object into a byte List.
|
short |
toUint16()
This method is used to get the byte value of the 16-bit stream object header End.
|
deserializeFromByteArray, parse
public StreamObjectHeaderEnd16bit(int type) throws TikaException
type
- Specify the integer value of the type.TikaException
public StreamObjectHeaderEnd16bit(StreamObjectTypeHeaderEnd headerType)
headerType
- Specify the value of the type.public StreamObjectHeaderEnd16bit()
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.