Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.media.mn8.protocol.jabber
Class ConnectorInterface  view ConnectorInterface download ConnectorInterface.java

java.lang.Object
  extended byorg.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
 
Constructor Summary
ConnectorInterface(java.lang.String _hostname)
          Constructor
 
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
 

Field Detail

hostname

protected java.lang.String hostname
The name of the host being connected to

Constructor Detail

ConnectorInterface

public ConnectorInterface(java.lang.String _hostname)
Constructor

Method Detail

getHostname

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


openInputStream

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


openOutputStream

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