org.opcfoundation.ua.utils.bytebuffer
Interface IBinaryWriteable

All Known Implementing Classes:
ByteBufferArrayWriteable, ByteBufferArrayWriteable2, ByteBufferWriteable, OutputStreamWriteable

public interface IBinaryWriteable

Writeable context

Author:
Toni Kalajainen (toni.kalajainen@vtt.fi)
See Also:
OutputStreamWriteable, ByteBufferWriteable, ByteBufferArrayWriteable, ByteBufferArrayWriteable2, ByteBufferArrayWriteable2

Method Summary
 void flush()
          flush.
 ByteOrder order()
          order.
 void order(ByteOrder order)
          order.
 void put(byte b)
          put.
 void put(byte[] src)
          put.
 void put(byte[] src, int offset, int length)
          put.
 void put(ByteBuffer src)
          Put n bytes from the remaining of the byte array.
 void put(ByteBuffer src, int length)
          Put n bytes from the remaining of the byte buffer.
 void putDouble(double value)
          putDouble.
 void putFloat(float value)
          putFloat.
 void putInt(int value)
          putInt.
 void putLong(long value)
          putLong.
 void putShort(short value)
          putShort.
 

Method Detail

put

void put(byte b)
         throws IOException

put.

Parameters:
b - a byte.
Throws:
IOException - if any.

put

void put(ByteBuffer src)
         throws IOException
Put n bytes from the remaining of the byte array. This operation moves the pointer in byte buffer.

Parameters:
src - a ByteBuffer object.
Throws:
IOException - if any.

put

void put(ByteBuffer src,
         int length)
         throws IOException
Put n bytes from the remaining of the byte buffer. This operation moves the pointer in byte buffer.

Parameters:
src - a ByteBuffer object.
length - a int.
Throws:
IOException - if any.

put

void put(byte[] src,
         int offset,
         int length)
         throws IOException

put.

Parameters:
src - an array of byte.
offset - a int.
length - a int.
Throws:
IOException - if any.

put

void put(byte[] src)
         throws IOException

put.

Parameters:
src - an array of byte.
Throws:
IOException - if any.

putShort

void putShort(short value)
              throws IOException

putShort.

Parameters:
value - a short.
Throws:
IOException - if any.

putInt

void putInt(int value)
            throws IOException

putInt.

Parameters:
value - a int.
Throws:
IOException - if any.

putLong

void putLong(long value)
             throws IOException

putLong.

Parameters:
value - a long.
Throws:
IOException - if any.

putFloat

void putFloat(float value)
              throws IOException

putFloat.

Parameters:
value - a float.
Throws:
IOException - if any.

putDouble

void putDouble(double value)
               throws IOException

putDouble.

Parameters:
value - a double.
Throws:
IOException - if any.

order

ByteOrder order()

order.

Returns:
a ByteOrder object.

order

void order(ByteOrder order)
           throws IOException

order.

Parameters:
order - a ByteOrder object.
Throws:
IOException - if any.

flush

void flush()
           throws IOException

flush.

Throws:
IOException - if any.


Copyright © 2018. All rights reserved.