de.trantor.mail.j2me
Class ConnectionImpl

java.lang.Object
  |
  +--de.trantor.mail.Connection
        |
        +--de.trantor.mail.j2me.ConnectionImpl

public class ConnectionImpl
extends Connection

Provides a concrete descendent of the abstract "Connection" class that can be used in the J2ME environment. Is is based on the Generic Connection Framework provided by the javax.microedition.io package.

See Also:
Connection, StreamConnection

Fields inherited from class de.trantor.mail.Connection
input, output
 
Constructor Summary
ConnectionImpl()
           
 
Method Summary
 void close()
          Closes the connection.
 void open(java.lang.String host, int port, boolean ssl)
          Opens a connection with the given host on the given port.
 
Methods inherited from class de.trantor.mail.Connection
connected, getDebug, getInstance, receive, send, setDebug
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionImpl

public ConnectionImpl()
Method Detail

open

public void open(java.lang.String host,
                 int port,
                 boolean ssl)
          throws java.io.IOException
Opens a connection with the given host on the given port.
Overrides:
open in class Connection
See Also:
close()

close

public void close()
           throws java.io.IOException
Closes the connection.
Overrides:
close in class Connection
See Also:
open(java.lang.String, int, boolean)