|
|||||||||
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
,
InputStreamReadable
Method Summary | |
---|---|
long |
length()
|
long |
position()
|
void |
readFully(java.nio.ByteBuffer buf)
Read buf fully |
void |
readFully(java.nio.ByteBuffer buf,
int length)
Read fully length bytes |
long |
skipBytes(long bytes)
|
Methods inherited from interface java.io.DataInput |
---|
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes |
Method Detail |
---|
long skipBytes(long bytes) throws java.io.IOException
java.io.IOException
void readFully(java.nio.ByteBuffer buf) throws java.io.IOException
buf
-
java.io.IOException
void readFully(java.nio.ByteBuffer buf, int length) throws java.io.IOException
buf
- length
-
java.io.IOException
long length() throws java.io.IOException
java.io.IOException
long position() throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |