public class SocketEndPoint extends StreamEndPoint
| Constructor and Description |
|---|
SocketEndPoint(Socket socket) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close any backing stream associated with the buffer
|
String |
getLocalAddr() |
String |
getLocalHost() |
int |
getLocalPort() |
String |
getRemoteAddr() |
String |
getRemoteHost() |
int |
getRemotePort() |
Object |
getTransport() |
boolean |
isOpen() |
void |
shutdownOutput()
Shutdown any backing output stream associated with the endpoint
|
blockReadable, blockWritable, fill, flush, flush, flush, getInputStream, getOutputStream, isBlocking, isBufferingInput, isBufferingOutput, isBufferred, isClosed, setInputStream, setOutputStreampublic SocketEndPoint(Socket socket) throws IOException
IOExceptionpublic boolean isOpen()
isOpen in interface EndPointisOpen in class StreamEndPointpublic void shutdownOutput()
throws IOException
EndPointshutdownOutput in interface EndPointshutdownOutput in class StreamEndPointIOExceptionpublic void close()
throws IOException
EndPointclose in interface EndPointclose in class StreamEndPointIOExceptionpublic String getLocalAddr()
getLocalAddr in interface EndPointgetLocalAddr in class StreamEndPointEndPoint is bound, or null
if this EndPoint does not represent a network connection.public String getLocalHost()
getLocalHost in interface EndPointgetLocalHost in class StreamEndPointEndPoint is bound, or null
if this EndPoint does not represent a network connection.public int getLocalPort()
getLocalPort in interface EndPointgetLocalPort in class StreamEndPointEndPoint is listening, or 0
if this EndPoint does not represent a network connection.public String getRemoteAddr()
getRemoteAddr in interface EndPointgetRemoteAddr in class StreamEndPointEndPoint is connected, or null
if this EndPoint does not represent a network connection.public String getRemoteHost()
getRemoteHost in interface EndPointgetRemoteHost in class StreamEndPointEndPoint is connected, or null
if this EndPoint does not represent a network connection.public int getRemotePort()
getRemotePort in interface EndPointgetRemotePort in class StreamEndPointEndPoint is connected, or 0
if this EndPoint does not represent a network connection.public Object getTransport()
getTransport in interface EndPointgetTransport in class StreamEndPointCopyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.