|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface InputSource
This interface represents an abstraction of any source of incoming data.
| Method Summary | |
|---|---|
int |
read(byte[] data,
int offset,
int len)
Read data from this input source into an array of bytes. |
int |
read(ByteBuffer data)
Read data from this input source into a byte buffer. |
int |
readInt()
Read an int value from this input source. |
int |
skip(int n)
Skip |
| Methods inherited from interface java.io.Closeable |
|---|
close |
| Method Detail |
|---|
int read(byte[] data,
int offset,
int len)
throws Exception
data - the buffer into which to write.offset - the position in the buffer where to start storing the data.len - the size in bytes of the data to read.
Exception - if an IO error occurs.
int read(ByteBuffer data)
throws Exception
data - the buffer into which to write.
Exception - if an IO error occurs.
int readInt()
throws Exception
Exception - if an IO error occurs.
int skip(int n)
throws Exception
n - the number of bytes to skip.
Exception - if an IO error occurs.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||