org.opcfoundation.ua.utils.bytebuffer
Interface IBinaryReadable

All Known Implementing Classes:
ByteBufferArrayReadable, ByteBufferReadable, InputStreamReadable

public interface IBinaryReadable

IBinaryReadable is a readable stream. IBinaryReadable throws EOFException if end of stream is reached.

Author:
Toni Kalajainen (toni.kalajainen@vtt.fi)
See Also:
ByteBufferReadable, InputStreamReadable, ByteBufferArrayReadable

Method Summary
 byte get()
          get.
 void get(byte[] dst)
          get.
 void get(byte[] dst, int offset, int length)
          get.
 void get(ByteBuffer buf)
          Get buf fully
 void get(ByteBuffer buf, int length)
          Get fully length bytes
 double getDouble()
          getDouble.
 float getFloat()
          getFloat.
 int getInt()
          getInt.
 long getLong()
          getLong.
 short getShort()
          getShort.
 long limit()
          limit.
 ByteOrder order()
          order.
 void order(ByteOrder order)
          order.
 long position()
          position.
 

Method Detail

get

byte get()
         throws IOException

get.

Returns:
a byte.
Throws:
IOException - if any.

get

void get(byte[] dst,
         int offset,
         int length)
         throws IOException

get.

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

get

void get(byte[] dst)
         throws IOException

get.

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

get

void get(ByteBuffer buf)
         throws IOException
Get buf fully

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

get

void get(ByteBuffer buf,
         int length)
         throws IOException
Get fully length bytes

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

getShort

short getShort()
               throws IOException

getShort.

Returns:
a short.
Throws:
IOException - if any.

getInt

int getInt()
           throws IOException

getInt.

Returns:
a int.
Throws:
IOException - if any.

getLong

long getLong()
             throws IOException

getLong.

Returns:
a long.
Throws:
IOException - if any.

getFloat

float getFloat()
               throws IOException

getFloat.

Returns:
a float.
Throws:
IOException - if any.

getDouble

double getDouble()
                 throws IOException

getDouble.

Returns:
a double.
Throws:
IOException - if any.

limit

long limit()
           throws IOException

limit.

Returns:
a long.
Throws:
IOException - if any.

order

ByteOrder order()

order.

Returns:
a ByteOrder object.

order

void order(ByteOrder order)

order.

Parameters:
order - a ByteOrder object.

position

long position()
              throws IOException

position.

Returns:
a long.
Throws:
IOException - if any.


Copyright © 2018. All rights reserved.