org.mortbay.io.bio
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, setOutputStream
public SocketEndPoint(Socket socket) throws IOException
IOException
public boolean isOpen()
isOpen
in interface EndPoint
isOpen
in class StreamEndPoint
public void shutdownOutput() throws IOException
EndPoint
shutdownOutput
in interface EndPoint
shutdownOutput
in class StreamEndPoint
IOException
public void close() throws IOException
EndPoint
close
in interface EndPoint
close
in class StreamEndPoint
IOException
public String getLocalAddr()
getLocalAddr
in interface EndPoint
getLocalAddr
in class StreamEndPoint
EndPoint
is bound, or null
if this EndPoint
does not represent a network connection.public String getLocalHost()
getLocalHost
in interface EndPoint
getLocalHost
in class StreamEndPoint
EndPoint
is bound, or null
if this EndPoint
does not represent a network connection.public int getLocalPort()
getLocalPort
in interface EndPoint
getLocalPort
in class StreamEndPoint
EndPoint
is listening, or 0
if this EndPoint
does not represent a network connection.public String getRemoteAddr()
getRemoteAddr
in interface EndPoint
getRemoteAddr
in class StreamEndPoint
EndPoint
is connected, or null
if this EndPoint
does not represent a network connection.public String getRemoteHost()
getRemoteHost
in interface EndPoint
getRemoteHost
in class StreamEndPoint
EndPoint
is connected, or null
if this EndPoint
does not represent a network connection.public int getRemotePort()
getRemotePort
in interface EndPoint
getRemotePort
in class StreamEndPoint
EndPoint
is connected, or 0
if this EndPoint
does not represent a network connection.public Object getTransport()
getTransport
in interface EndPoint
getTransport
in class StreamEndPoint
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.