Class StreamObjectHeaderStart16bit
- java.lang.Object
-
- org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.basic.BasicObject
-
- org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.StreamObjectHeaderStart
-
- org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.StreamObjectHeaderStart16bit
-
- All Implemented Interfaces:
IFSSHTTPBSerializable
public class StreamObjectHeaderStart16bit extends StreamObjectHeaderStart
An 16-bit header for a compound object would indicate the start of a stream object
-
-
Field Summary
-
Fields inherited from class org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.StreamObjectHeaderStart
compound, headerType, length, STREAM_OBJECT_HEADER_START_16_BIT, STREAM_OBJECT_HEADER_START_32_BIT, type
-
-
Constructor Summary
Constructors Constructor 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.
-
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 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.shortToUint16()This method is used to get the Uint16 value of the 16bit stream object header.-
Methods inherited from class org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.StreamObjectHeaderStart
tryParse
-
Methods inherited from class org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.basic.BasicObject
deserializeFromByteArray, parse
-
-
-
-
Constructor Detail
-
StreamObjectHeaderStart16bit
public StreamObjectHeaderStart16bit(StreamObjectTypeHeaderStart type, int length) throws TikaException
Initializes a new instance of the StreamObjectHeaderStart16bit class with specified type and length.- Parameters:
type- Specify the type of the StreamObjectHeaderStart16bit.length- Specify the length of the StreamObjectHeaderStart16bit.- Throws:
TikaException
-
StreamObjectHeaderStart16bit
public StreamObjectHeaderStart16bit(StreamObjectTypeHeaderStart type) throws TikaException
Initializes a new instance of the StreamObjectHeaderStart16bit class with specified type.- Parameters:
type- Specify the type of the StreamObjectHeaderStart16bit.- Throws:
TikaException
-
StreamObjectHeaderStart16bit
public StreamObjectHeaderStart16bit()
Initializes a new instance of the StreamObjectHeaderStart16bit class, this is the default constructor.
-
-
Method Detail
-
serializeToByteList
public List<Byte> serializeToByteList() throws IOException
This method is used to convert the element of StreamObjectHeaderStart16bit 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 StreamObjectHeaderStart16bit.
- Throws:
IOException
-
ToUint16
public short ToUint16() throws IOExceptionThis method is used to get the Uint16 value of the 16bit stream object header.- Returns:
- Return the ushort value.
- Throws:
IOException
-
doDeserializeFromByteArray
protected int doDeserializeFromByteArray(byte[] byteArray, int startIndex) throws IOException, TikaExceptionThis method is used to deserialize the StreamObjectHeaderStart16bit 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 StreamObjectHeaderStart16bit basic object.
- Throws:
IOExceptionTikaException
-
-