jmc.connection
Class meConnector

java.lang.Object
  extended by java.lang.Thread
      extended by jmc.connection.meConnector
All Implemented Interfaces:
java.lang.Runnable

public class meConnector
extends java.lang.Thread


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
meConnector(java.lang.String hostname, int port, CommunicationManager cm)
          Constructor
 
Method Summary
 javax.microedition.io.StreamConnection getConnection()
          Method to return the connection
 java.io.InputStream openInputStream()
          Method to return the input stream of the connection
 java.io.OutputStream openOutputStream()
          Method to return the output stream of the connection
 void run()
          Modified by Gabriele Bianchi 04/01/2006
 
Methods inherited from class java.lang.Thread
activeCount, currentThread, getName, getPriority, interrupt, isAlive, join, setPriority, sleep, start, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

meConnector

public meConnector(java.lang.String hostname,
                   int port,
                   CommunicationManager cm)
Constructor

Parameters:
hostname - The host to connect to
port - The port to connect to
Method Detail

run

public void run()
Modified by Gabriele Bianchi 04/01/2006

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

openInputStream

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

Returns:
InputStream
Throws:
java.io.IOException

openOutputStream

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

Returns:
OutputStream
Throws:
java.io.IOException

getConnection

public javax.microedition.io.StreamConnection getConnection()
Method to return the connection

Returns:
StreamConnection