|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
blockReadable(long millisecs)
|
void |
blockWritable(long millisecs)
|
void |
close()
Close any backing stream associated with the buffer |
int |
fill(Buffer buffer)
Fill the buffer from the current putIndex to it's capacity from whatever byte source is backing the buffer. |
int |
flush(Buffer buffer)
Flush the buffer from the current getIndex to it's putIndex using whatever byte sink is backing the buffer. |
int |
flush(Buffer header,
Buffer buffer,
Buffer trailer)
Flush the buffer from the current getIndex to it's putIndex using whatever byte sink is backing the buffer. |
Object |
getConnection()
|
String |
getLocalAddr()
|
String |
getLocalHost()
|
int |
getLocalPort()
|
String |
getRemoteAddr()
|
String |
getRemoteHost()
|
int |
getRemotePort()
|
boolean |
isBlocking()
|
boolean |
isOpen()
|
Method Detail |
public void close() throws IOException
IOException
public int fill(Buffer buffer) throws IOException
int
value indicating the number of bytes
filled or -1 if EOF is reached.
IOException
public int flush(Buffer buffer) throws IOException
buffer
- The buffer to flush. This buffers getIndex is updated.
IOException
public int flush(Buffer header, Buffer buffer, Buffer trailer) throws IOException
header
- A buffer to write before flushing this buffer. This buffers getIndex is updated.buffer
- The buffer to flush. This buffers getIndex is updated.trailer
- A buffer to write after flushing this buffer. This buffers getIndex is updated.
IOException
public String getLocalAddr()
EndPoint
is bound, or null
if this EndPoint
does not represent a network connection.public String getLocalHost()
EndPoint
is bound, or null
if this EndPoint
does not represent a network connection.public int getLocalPort()
EndPoint
is listening, or 0
if this EndPoint
does not represent a network connection.public String getRemoteAddr()
EndPoint
is connected, or null
if this EndPoint
does not represent a network connection.public String getRemoteHost()
EndPoint
is connected, or null
if this EndPoint
does not represent a network connection.public int getRemotePort()
EndPoint
is connected, or 0
if this EndPoint
does not represent a network connection.public boolean isBlocking()
public void blockReadable(long millisecs)
public void blockWritable(long millisecs)
public boolean isOpen()
public Object getConnection()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |