net.sf.jftp.net
Class JConnection

java.lang.Object
  extended bynet.sf.jftp.net.JConnection
All Implemented Interfaces:
java.lang.Runnable

public class JConnection
extends java.lang.Object
implements java.lang.Runnable

Basic class for getting an TCP/IP-Connection timeout sets (as the name says) the maximum time the Thread waits for the target host...


Constructor Summary
JConnection(java.lang.String host, int port)
           
JConnection(java.lang.String host, int port, int time)
           
 
Method Summary
 java.io.PrintStream getInetOutputStream()
           
 java.net.InetAddress getLocalAddress()
           
 int getLocalPort()
           
 java.io.BufferedReader getReader()
           
 boolean isThere()
           
 void run()
           
 void send(java.lang.String data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JConnection

public JConnection(java.lang.String host,
                   int port)

JConnection

public JConnection(java.lang.String host,
                   int port,
                   int time)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

isThere

public boolean isThere()

send

public void send(java.lang.String data)

getInetOutputStream

public java.io.PrintStream getInetOutputStream()

getReader

public java.io.BufferedReader getReader()

getLocalPort

public int getLocalPort()

getLocalAddress

public java.net.InetAddress getLocalAddress()
                                     throws java.io.IOException
Throws:
java.io.IOException