public class InputStreamReadable extends Object implements IBinaryReadable
| Constructor and Description |
|---|
InputStreamReadable(InputStream is,
long limit)
Constructor for InputStreamReadable.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public InputStreamReadable(InputStream is, long limit)
Constructor for InputStreamReadable.
is - a InputStream object.limit - a long.public byte get()
throws IOException
IBinaryReadableget.
get in interface IBinaryReadableIOException - if any.public void get(byte[] dst)
throws IOException
IBinaryReadableget.
get in interface IBinaryReadabledst - an array of byte.IOException - if any.public void get(byte[] dst,
int offset,
int length)
throws IOException
IBinaryReadableget.
get in interface IBinaryReadabledst - an array of byte.offset - a int.length - a int.IOException - if any.public void get(ByteBuffer buf) throws IOException
IBinaryReadableget in interface IBinaryReadablebuf - a ByteBuffer object.IOException - if any.public void get(ByteBuffer buf, int length) throws IOException
IBinaryReadableget in interface IBinaryReadablebuf - a ByteBuffer object.length - a int.IOException - if any.public double getDouble()
throws IOException
IBinaryReadablegetDouble.
getDouble in interface IBinaryReadableIOException - if any.public float getFloat()
throws IOException
IBinaryReadablegetFloat.
getFloat in interface IBinaryReadableIOException - if any.public int getInt()
throws IOException
IBinaryReadablegetInt.
getInt in interface IBinaryReadableIOException - if any.public long getLong()
throws IOException
IBinaryReadablegetLong.
getLong in interface IBinaryReadableIOException - if any.public short getShort()
throws IOException
IBinaryReadablegetShort.
getShort in interface IBinaryReadableIOException - if any.public long limit()
IBinaryReadablelimit.
limit in interface IBinaryReadablepublic ByteOrder order()
IBinaryReadableorder.
order in interface IBinaryReadableByteOrder object.public void order(ByteOrder order)
IBinaryReadableorder.
order in interface IBinaryReadableorder - a ByteOrder object.public long position()
IBinaryReadableposition.
position in interface IBinaryReadablepublic void skip(long bytes)
throws IOException
skip.
bytes - a long.IOException - if any.Copyright © 2026. All rights reserved.