|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttribble.net.ftp.shell.Interp
class Interp
FTP command script interpreter.
Copyright ©2007-2008 by David R. Tribble, all rights reserved.
Permission is granted to any person or entity except those designated by
by the United States Department of State as a terrorist, or terrorist
government or agency, to use and distribute this source code provided
that the original copyright notice remains present and unaltered.
FTPCommandInterpreter,
CommandParser,
ExecFrame,
BlockDef| Field Summary | |
|---|---|
(package private) static java.lang.String |
LOCAL_NL
Local native JVM newline character sequence. |
(package private) boolean |
m_exit
Exit command flag. |
(package private) boolean |
m_isVerbose
Generate verbose command tracing output (current setting). |
(package private) boolean |
m_limitCmds
Limit the number of commands executed (to 1,000). |
(package private) java.io.File |
m_localDir
Local directory name. |
(package private) long |
m_nExecs
Commands (statements) executed. |
(package private) java.util.Random |
m_rand
Pseudo-random number generator. |
(package private) long |
m_startTime
Execution start time. |
(package private) boolean |
m_stop
Execution interrupt/stop flag. |
(package private) long |
m_time
Current date/time (as msec since 1970-01-01 00:00:00Z). |
(package private) boolean |
m_verbose
Generate verbose command tracing output (global setting). |
(package private) static java.lang.String |
REV
Revision information. |
(package private) static java.lang.String |
SYS_CURDIR
Local current directory. |
(package private) static java.lang.String |
SYS_DIRSEP
Local native directory pathname separator. |
| Fields inherited from interface tribble.net.ftp.shell.VarNames |
|---|
VAR_CMDPORT, VAR_COMMANDCNT, VAR_DATAPORT, VAR_ERROR, VAR_ERRORCMD, VAR_ERRORCNT, VAR_ERRORMSG, VAR_FILE, VAR_FILE_DIR, VAR_FILE_DIRSEP, VAR_FILE_EXT, VAR_FILE_FILE, VAR_FILE_GROUP, VAR_FILE_HOST, VAR_FILE_NAME, VAR_FILE_OWNER, VAR_FILE_PATH, VAR_FILE_PERMS, VAR_FILE_SIZE, VAR_FILE_TYPE, VAR_FILENAME, VAR_HOST, VAR_LINENUM, VAR_LOCALDIR, VAR_PASSWORD, VAR_PORT, VAR_RANDOM, VAR_REMOTEDIR, VAR_SESSIONCNT, VAR_TIME, VAR_TIMEOUT, VAR_TZOFFSET, VAR_USER |
| Constructor Summary | |
|---|---|
Interp(CommandNode cmds,
java.io.PrintStream out,
java.io.PrintStream err)
Constructor. |
|
| Method Summary | |
|---|---|
(package private) int |
execute()
Execute (interpret) the command script. |
(package private) void |
stop()
Stop this currently running FTP command script interpreter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final java.lang.String REV
static final java.lang.String LOCAL_NL
static final java.lang.String SYS_DIRSEP
static final java.lang.String SYS_CURDIR
java.io.File m_localDir
long m_startTime
long m_time
long m_nExecs
java.util.Random m_rand
volatile boolean m_stop
boolean m_exit
boolean m_verbose
boolean m_isVerbose
boolean m_limitCmds
| Constructor Detail |
|---|
Interp(CommandNode cmds,
java.io.PrintStream out,
java.io.PrintStream err)
throws java.lang.IllegalArgumentException
cmds - Parsed commands (statements) from a source command script.out - Output stream.err - Error output stream.
java.lang.IllegalArgumentException - (unchecked)
Thrown if cmds is malformed.| Method Detail |
|---|
void stop()
int execute()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||