org.avineas.io
public interface ReadChannel extends java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
int |
read(byte[] data,
int offset,
long timeout)
Read a packet or byte array from the channel, filling up either the data buffer or
the information as present in the packet.
|
int read(byte[] data,
int offset,
long timeout)
data - The byte buffer to read intooffset - The offset in the buffer to start readingtimeout - The timeout to wait for the first byte of data to become available, in ms.
If a value <= 0 is passed, no waiting is done at all