|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.jms.net.socket.SocketEndpoint
public class SocketEndpoint
Adapts a Socket
to the Endpoint
interface.
Constructor Summary | |
---|---|
SocketEndpoint(java.lang.String scheme,
java.net.Socket socket)
Construct a new SocketEndpoint . |
Method Summary | |
---|---|
void |
close()
Closes the endpoint |
java.io.InputStream |
getInputStream()
Returns an input stream that reads from this endpoint |
java.io.OutputStream |
getOutputStream()
Returns an output stream that writes to this endpoint |
URI |
getURI()
Returns the URI that the endpoint is connected to |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SocketEndpoint(java.lang.String scheme, java.net.Socket socket) throws java.io.IOException
SocketEndpoint
.
scheme
- the URI schemesocket
- the underlying socket
java.io.IOException
- for any I/O errorMethod Detail |
---|
public URI getURI()
getURI
in interface Endpoint
public java.io.InputStream getInputStream()
getInputStream
in interface Endpoint
public java.io.OutputStream getOutputStream()
getOutputStream
in interface Endpoint
public void close() throws java.io.IOException
close
in interface Endpoint
java.io.IOException
- if an I/O error occurs while closing the endpoint
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |