|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opcfoundation.ua.utils.bytebuffer.InputStreamReadable
public class InputStreamReadable
Input stream reader
| Constructor Summary | |
|---|---|
InputStreamReadable(InputStream is,
long limit)
Constructor for InputStreamReadable. |
|
| 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. |
void |
skip(long bytes)
skip. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InputStreamReadable(InputStream is,
long limit)
Constructor for InputStreamReadable.
is - a InputStream object.limit - a long.| Method Detail |
|---|
public byte get()
throws IOException
get.
get in interface IBinaryReadableIOException - if any.
public void get(byte[] dst,
int offset,
int length)
throws IOException
get.
get in interface IBinaryReadabledst - an array of byte.offset - a int.length - a int.
IOException - if any.
public void get(byte[] dst)
throws IOException
get.
get in interface IBinaryReadabledst - an array of byte.
IOException - if any.
public void get(ByteBuffer buf)
throws IOException
get in interface IBinaryReadablebuf - a ByteBuffer object.
IOException - if any.
public void get(ByteBuffer buf,
int length)
throws IOException
get in interface IBinaryReadablebuf - a ByteBuffer object.length - a int.
IOException - if any.
public double getDouble()
throws IOException
getDouble.
getDouble in interface IBinaryReadableIOException - if any.
public float getFloat()
throws IOException
getFloat.
getFloat in interface IBinaryReadableIOException - if any.
public int getInt()
throws IOException
getInt.
getInt in interface IBinaryReadableIOException - if any.
public long getLong()
throws IOException
getLong.
getLong in interface IBinaryReadableIOException - if any.
public short getShort()
throws IOException
getShort.
getShort in interface IBinaryReadableIOException - if any.public long limit()
limit.
limit in interface IBinaryReadablepublic long position()
position.
position in interface IBinaryReadablepublic ByteOrder order()
order.
order in interface IBinaryReadableByteOrder object.public void order(ByteOrder order)
order.
order in interface IBinaryReadableorder - a ByteOrder object.
public void skip(long bytes)
throws IOException
skip.
bytes - a long.
IOException - if any.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||