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 Object

The interface for all connectors which handle creating the input and output stream


Field Summary
protected  String hostname
          The name of the host being connected to
 
Constructor Summary
ConnectorInterface(String _hostname)
          Constructor
 
Method Summary
 String getHostname()
          Method to get the name of the host being connected to
abstract  InputStream openInputStream()
          Method to return the input stream of the connection
abstract  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
 

Field Detail

hostname

protected String hostname
The name of the host being connected to

Constructor Detail

ConnectorInterface

public ConnectorInterface(String _hostname)
Constructor

Parameters:
_hostname - The name of the host being connected to
Method Detail

getHostname

public String getHostname()
Method to get the name of the host being connected to

Returns:
The hostname being connected to

openInputStream

public abstract InputStream openInputStream()
                                     throws IOException
Method to return the input stream of the connection

Returns:
The input stream
IOException

openOutputStream

public abstract OutputStream openOutputStream()
                                       throws IOException
Method to return the output stream of the connection

Returns:
The output stream
IOException


"Copyright © 2000-2002 Internet Multicasting Services, media.org & noLimits Technologies. All Rights Reserved."