|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BinaryReadable
BinaryReadable is a readable stream of bytes. Common interface for ByteBuffer, byte[], InputStream, RandomAccessFile.
ByteBufferReadable
,
FileReadable
,
InputStreamReadable
Method Summary | |
---|---|
byte |
get()
|
void |
get(byte[] dst)
|
void |
get(byte[] dst,
int offset,
int length)
|
void |
get(java.nio.ByteBuffer buf)
Get buf fully |
void |
get(java.nio.ByteBuffer buf,
int length)
Get fully length bytes |
double |
getDouble()
|
float |
getFloat()
|
int |
getInt()
|
long |
getLong()
|
short |
getShort()
|
long |
length()
|
java.nio.ByteOrder |
order()
|
void |
order(java.nio.ByteOrder order)
|
long |
position()
|
void |
skip(long bytes)
|
Method Detail |
---|
byte get() throws java.io.IOException, java.lang.IndexOutOfBoundsException
java.io.IOException
java.lang.IndexOutOfBoundsException
void get(byte[] dst, int offset, int length) throws java.io.IOException, java.lang.IndexOutOfBoundsException
java.io.IOException
java.lang.IndexOutOfBoundsException
void get(byte[] dst) throws java.io.IOException, java.lang.IndexOutOfBoundsException
java.io.IOException
java.lang.IndexOutOfBoundsException
void get(java.nio.ByteBuffer buf) throws java.io.IOException, java.lang.IndexOutOfBoundsException
buf
-
java.io.IOException
java.lang.IndexOutOfBoundsException
void get(java.nio.ByteBuffer buf, int length) throws java.io.IOException, java.lang.IndexOutOfBoundsException
buf
- length
-
java.io.IOException
java.lang.IndexOutOfBoundsException
short getShort() throws java.io.IOException, java.lang.IndexOutOfBoundsException
java.io.IOException
java.lang.IndexOutOfBoundsException
int getInt() throws java.io.IOException, java.lang.IndexOutOfBoundsException
java.io.IOException
java.lang.IndexOutOfBoundsException
long getLong() throws java.io.IOException, java.lang.IndexOutOfBoundsException
java.io.IOException
java.lang.IndexOutOfBoundsException
float getFloat() throws java.io.IOException, java.lang.IndexOutOfBoundsException
java.io.IOException
java.lang.IndexOutOfBoundsException
double getDouble() throws java.io.IOException, java.lang.IndexOutOfBoundsException
java.io.IOException
java.lang.IndexOutOfBoundsException
long length() throws java.io.IOException
java.io.IOException
java.nio.ByteOrder order()
void order(java.nio.ByteOrder order)
long position() throws java.io.IOException
java.io.IOException
void skip(long bytes) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |