org.exolab.jms.net.multiplexer
Interface Endpoint

All Known Implementing Classes:
SocketEndpoint

public interface Endpoint

Communications endpoint

Version:
$Revision: 1.1 $ $Date: 2004/11/26 01:51:04 $
Author:
Tim Anderson

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
 

Method Detail

getURI

URI getURI()
Returns the URI that the endpoint is connected to

Returns:
the URI that the endpoint is connected to

getInputStream

java.io.InputStream getInputStream()
                                   throws java.io.IOException
Returns an input stream that reads from this endpoint

Returns:
an input stream that reads from this endpoint
Throws:
java.io.IOException - if an I/O error occurs while creating the input stream.

getOutputStream

java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Returns an output stream that writes to this endpoint

Returns:
an output stream that writes to this endpoint
Throws:
java.io.IOException - if an I/O error occurs while creating the output stream.

close

void close()
           throws java.io.IOException
Closes the endpoint

Throws:
java.io.IOException - if an I/O error occurs while closing the endpoint


Copyright © 1999-2012 The OpenJMS Group. All Rights Reserved.