| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | |
| public void | |
| public int | |
| public int | |
| public int | Returns: the total number of bytes written.A buffer to write before flushing this buffer. This buffers getIndex is updated. header, Buffer The buffer to flush. This buffers getIndex is updated. buffer, Buffer A buffer to write after flushing this buffer. This buffers getIndex is updated. trailer)Flush the buffer from the current getIndex to it's putIndex using whatever byte sink is backing the buffer. |
| public void | |
| public String | Returns: The local IP address to which thisEndPoint is bound, or null
if this EndPoint does not represent a network connection.
|
| public String | Returns: The local host name to which thisEndPoint is bound, or null
if this EndPoint does not represent a network connection.
|
| public int | Returns: The local port number on which thisEndPoint is listening, or 0
if this EndPoint does not represent a network connection.
|
| public String | Returns: The remote IP address to which thisEndPoint is connected, or null
if this EndPoint does not represent a network connection.
|
| public String | Returns: The host name of the remote machine to which thisEndPoint is connected, or null
if this EndPoint does not represent a network connection.
|
| public int | Returns: The remote port number to which thisEndPoint is connected, or 0
if this EndPoint does not represent a network connection.
|
| public Object | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean |
| blockReadable | back to summary |
|---|---|
| public boolean blockReadable(long millisecs) throws IOException | |
| blockWritable | back to summary |
|---|---|
| public boolean blockWritable(long millisecs) throws IOException | |
| close | back to summary |
|---|---|
| public void close() throws IOException Close any backing stream associated with the buffer | |
| fill | back to summary |
|---|---|
| public int fill(Buffer buffer) throws IOException Fill the buffer from the current putIndex to it's capacity from whatever byte source is backing the buffer. The putIndex is increased if bytes filled. The buffer may chose to do a compact before filling.
| |
| flush | back to summary |
|---|---|
| public int flush(Buffer buffer) throws IOException Flush the buffer from the current getIndex to it's putIndex using whatever byte sink is backing the buffer. The getIndex is updated with the number of bytes flushed. Any mark set is cleared. If the entire contents of the buffer are flushed, then an implicit empty() is done.
| |
| flush | back to summary |
|---|---|
| public int flush(Buffer header, Buffer buffer, Buffer trailer) throws IOException Flush the buffer from the current getIndex to it's putIndex using whatever byte sink is backing the buffer. The getIndex is updated with the number of bytes flushed. Any mark set is cleared. If the entire contents of the buffer are flushed, then an implicit empty() is done. The passed header/trailer buffers are written before/after the contents of this buffer. This may be done either as gather writes, as a poke into this buffer or as several writes. The implementation is free to select the optimal mechanism.
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Flush any buffered output. May fail to write all data if endpoint is non-blocking | |
| getLocalAddr | back to summary |
|---|---|
public String getLocalAddr()
| |
| getLocalHost | back to summary |
|---|---|
public String getLocalHost()
| |
| getLocalPort | back to summary |
|---|---|
public int getLocalPort()
| |
| getRemoteAddr | back to summary |
|---|---|
public String getRemoteAddr()
| |
| getRemoteHost | back to summary |
|---|---|
public String getRemoteHost()
| |
| getRemotePort | back to summary |
|---|---|
public int getRemotePort()
| |
| getTransport | back to summary |
|---|---|
public Object getTransport()
| |
| isBlocking | back to summary |
|---|---|
| public boolean isBlocking() | |
| isBufferingInput | back to summary |
|---|---|
public boolean isBufferingInput()
| |
| isBufferingOutput | back to summary |
|---|---|
public boolean isBufferingOutput()
| |
| isBufferred | back to summary |
|---|---|
| public boolean isBufferred() | |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() | |