org.mortbay.io.bio
public class SocketEndPoint extends StreamEndPoint
| Constructor and Description |
|---|
SocketEndPoint(java.net.Socket socket) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close any backing stream associated with 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 |
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(java.net.Socket socket)
throws java.io.IOException
java.io.IOExceptionpublic boolean isOpen()
isOpen in interface EndPointisOpen in class StreamEndPointpublic void shutdownOutput()
throws java.io.IOException
EndPointshutdownOutput in interface EndPointshutdownOutput in class StreamEndPointjava.io.IOExceptionpublic void close()
throws java.io.IOException
EndPointclose in interface EndPointclose in class StreamEndPointjava.io.IOExceptionpublic java.lang.String getLocalAddr()
getLocalAddr in interface EndPointgetLocalAddr in class StreamEndPointEndPoint is bound, or null
if this EndPoint does not represent a network connection.public java.lang.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 java.lang.String getRemoteAddr()
getRemoteAddr in interface EndPointgetRemoteAddr in class StreamEndPointEndPoint is connected, or null
if this EndPoint does not represent a network connection.public java.lang.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 java.lang.Object getTransport()
getTransport in interface EndPointgetTransport in class StreamEndPointCopyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.