Class StreamObjectHeaderEnd16bit
- java.lang.Object
-
- org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.basic.BasicObject
-
- org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.StreamObjectHeaderEnd
-
- org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.StreamObjectHeaderEnd16bit
-
- All Implemented Interfaces:
IFSSHTTPBSerializable
public class StreamObjectHeaderEnd16bit extends StreamObjectHeaderEnd
An 16-bit header for a compound object would indicate the end of a stream object
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intdoDeserializeFromByteArray(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.shorttoUint16()This method is used to get the byte value of the 16-bit stream object header End.-
Methods inherited from class org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.basic.BasicObject
deserializeFromByteArray, parse
-
-
-
-
Constructor Detail
-
StreamObjectHeaderEnd16bit
public StreamObjectHeaderEnd16bit(int type) throws TikaExceptionInitializes a new instance of the StreamObjectHeaderEnd16bit class with the specified type value.- Parameters:
type- Specify the integer value of the type.- Throws:
TikaException
-
StreamObjectHeaderEnd16bit
public StreamObjectHeaderEnd16bit(StreamObjectTypeHeaderEnd headerType)
Initializes a new instance of the StreamObjectHeaderEnd16bit class with the specified type value.- Parameters:
headerType- Specify the value of the type.
-
StreamObjectHeaderEnd16bit
public StreamObjectHeaderEnd16bit()
Initializes a new instance of the StreamObjectHeaderEnd16bit class, this is the default constructor.
-
-
Method Detail
-
serializeToByteList
public List<Byte> serializeToByteList() throws IOException
This method is used to convert the element of StreamObjectHeaderEnd16bit basic object into a byte List.- Specified by:
serializeToByteListin interfaceIFSSHTTPBSerializable- Specified by:
serializeToByteListin classBasicObject- Returns:
- Return the byte list which store the byte information of StreamObjectHeaderEnd16bit.
- Throws:
IOException
-
toUint16
public short toUint16() throws IOExceptionThis method is used to get the byte value of the 16-bit stream object header End.- Returns:
- Return StreamObjectHeaderEnd8bit value represented by unsigned short integer.
- Throws:
IOException
-
doDeserializeFromByteArray
protected int doDeserializeFromByteArray(byte[] byteArray, int startIndex) throws IOException, TikaExceptionThis method is used to deserialize the StreamObjectHeaderEnd16bit basic object from the specified byte array and start index.- Specified by:
doDeserializeFromByteArrayin classBasicObject- Parameters:
byteArray- Specify the byte array.startIndex- Specify the start index from the byte array.- Returns:
- Return the length in byte of the StreamObjectHeaderEnd16bit basic object.
- Throws:
IOExceptionTikaException
-
-