org.mortbay.io
public interface EndPoint
| Modifier and Type | Method and Description |
|---|---|
boolean |
blockReadable(long millisecs) |
boolean |
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.
|
void |
flush()
Flush any buffered output.
|
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.
|
java.lang.String |
getLocalAddr() |
java.lang.String |
getLocalHost() |
int |
getLocalPort() |
java.lang.String |
getRemoteAddr() |
java.lang.String |
getRemoteHost() |
int |
getRemotePort() |
java.lang.Object |
getTransport() |
boolean |
isBlocking() |
boolean |
isBufferingInput() |
boolean |
isBufferingOutput() |
boolean |
isBufferred() |
boolean |
isOpen() |
void |
shutdownOutput()
Shutdown any backing output stream associated with the endpoint
|
void shutdownOutput()
throws java.io.IOException
java.io.IOExceptionvoid close()
throws java.io.IOException
java.io.IOExceptionint fill(Buffer buffer) throws java.io.IOException
int value indicating the number of bytes
filled or -1 if EOF is reached.java.io.IOExceptionint flush(Buffer buffer) throws java.io.IOException
buffer - The buffer to flush. This buffers getIndex is updated.java.io.IOExceptionint flush(Buffer header, Buffer buffer, Buffer trailer) throws java.io.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.java.io.IOExceptionjava.lang.String getLocalAddr()
EndPoint is bound, or null
if this EndPoint does not represent a network connection.java.lang.String getLocalHost()
EndPoint is bound, or null
if this EndPoint does not represent a network connection.int getLocalPort()
EndPoint is listening, or 0
if this EndPoint does not represent a network connection.java.lang.String getRemoteAddr()
EndPoint is connected, or null
if this EndPoint does not represent a network connection.java.lang.String getRemoteHost()
EndPoint is connected, or null
if this EndPoint does not represent a network connection.int getRemotePort()
EndPoint is connected, or 0
if this EndPoint does not represent a network connection.boolean isBlocking()
boolean isBufferred()
boolean blockReadable(long millisecs)
throws java.io.IOException
java.io.IOExceptionboolean blockWritable(long millisecs)
throws java.io.IOException
java.io.IOExceptionboolean isOpen()
java.lang.Object getTransport()
boolean isBufferingInput()
boolean isBufferingOutput()
void flush()
throws java.io.IOException
java.io.IOExceptionCopyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.