net.ftp
Class FtpTestNonGui

java.lang.Object
  extended by net.ftp.FtpTestNonGui

public class FtpTestNonGui
extends java.lang.Object


Constructor Summary
FtpTestNonGui()
           
 
Method Summary
 java.lang.StringBuffer getFile()
          Returns the content of a file as StringBuffer.
static void main(java.lang.String[] args)
           
 void setPass(java.lang.String s)
           
 void setPassiveMode(boolean on)
           
 void setURL(java.lang.String url)
          The param url inludes server and file but not the protocol.
 void setUser(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FtpTestNonGui

public FtpTestNonGui()
Method Detail

setPassiveMode

public void setPassiveMode(boolean on)

setURL

public void setURL(java.lang.String url)
The param url inludes server and file but not the protocol. Example: "myserver.net/mydirectory/index.html".


setUser

public void setUser(java.lang.String s)

setPass

public void setPass(java.lang.String s)

getFile

public java.lang.StringBuffer getFile()
                               throws java.lang.Exception
Returns the content of a file as StringBuffer.

Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)