Secure FTP Factory

com.jscape.ftcl
Class FTCL

java.lang.Object
  extended by com.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.
FTCL(FTCLParserVisitorImpl visitor)
          Constructor.
 
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.


FTCL

public FTCL(FTCLParserVisitorImpl visitor)
Constructor.

Parameters:
visitor - visitor
Method Detail

execute

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

Parameters:
script - the script to execute
Throws:
FTCLException - if an error occurs

execute

public void execute(byte[] script)
             throws FTCLException
Executes commands provided in byte[]

Parameters:
script - the commands to execute
Throws:
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 LLC. 1999-2011. All Rights Reserved