org.media.mn8.protocol.jabber
Class ConnectorInterface
java.lang.Object
|
+--org.media.mn8.protocol.jabber.ConnectorInterface
- Direct Known Subclasses:
- seConnector
- public abstract class ConnectorInterface
- extends java.lang.Object
The interface for all connectors which handle creating the input and output stream
Field Summary |
protected java.lang.String |
hostname
The name of the host being connected to |
Method Summary |
java.lang.String |
getHostname()
Method to get the name of the host being connected to |
abstract java.io.InputStream |
openInputStream()
Method to return the input stream of the connection |
abstract java.io.OutputStream |
openOutputStream()
Method to return the output stream of the connection |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
hostname
protected java.lang.String hostname
- The name of the host being connected to
ConnectorInterface
public ConnectorInterface(java.lang.String _hostname)
- Constructor
- Parameters:
_hostname
- The name of the host being connected to
getHostname
public java.lang.String getHostname()
- Method to get the name of the host being connected to
- Returns:
- The hostname being connected to
openInputStream
public abstract java.io.InputStream openInputStream()
throws java.io.IOException
- Method to return the input stream of the connection
- Returns:
- The input stream
openOutputStream
public abstract java.io.OutputStream openOutputStream()
throws java.io.IOException
- Method to return the output stream of the connection
- Returns:
- The output stream
"Copyright © 2001 Internet Multicasting Services & media.org. All Rights Reserved."