Secure FTP Factory

com.jscape.ftcl
Class FTCL

java.lang.Object
  extended bycom.jscape.ftcl.FTCL

public class FTCL
extends java.lang.Object

Runs a script using commands defined in the File Transfer Command Line language.


Constructor Summary
FTCL()
          Constructs new FTCL instance.
 
Method Summary
 void execute(byte[] script)
          Executes commands provided in byte[]
 void execute(java.io.File script)
          Executes commands provided in file.
static void main(java.lang.String[] args)
          Launches FTCL application.
 void setDebugStream(java.io.PrintStream ps)
          Sets the debug stream used by FTCL.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FTCL

public FTCL()
Constructs new FTCL instance.

Method Detail

execute

public void execute(java.io.File script)
             throws com.jscape.ftcl.FTCLException
Executes commands provided in file.

Parameters:
script - the script to execute
Throws:
com.jscape.ftcl.FTCLException - if an error occurs

execute

public void execute(byte[] script)
             throws com.jscape.ftcl.FTCLException
Executes commands provided in byte[]

Parameters:
script - the commands to execute
Throws:
com.jscape.ftcl.FTCLException - if an error occurs

setDebugStream

public void setDebugStream(java.io.PrintStream ps)
Sets the debug stream used by FTCL. By default debugging is enabled and System.out is used

Parameters:
ps - a java.io.PrintStream
See Also:
PrintStream

main

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

Parameters:
args - a set of command line arguments

Secure FTP Factory

Copyright JSCAPE 1999-2007 All Rights Reserved