|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.fs.FSCmd
public abstract class FSCmd
Defines common methods for file system commands. The implementing class names are supposed to equal the command names (case sensitivity doesn't matter)
Constructor Summary | |
---|---|
FSCmd()
|
Method Summary | |
---|---|
abstract void |
args(java.lang.String args)
Checks the command line arguments. |
void |
context(Context ctx)
Sets the query context. |
abstract void |
exec(PrintOutput out)
Executes the command.. |
static FSCmd |
get(Commands.CmdFS cmd)
Returns an instance for the specified command. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FSCmd()
Method Detail |
---|
public static FSCmd get(Commands.CmdFS cmd)
cmd
- command
public final void context(Context ctx)
ctx
- data contextpublic abstract void args(java.lang.String args) throws FSException
args
- command line arguments
FSException
- file system exceptionpublic abstract void exec(PrintOutput out) throws java.io.IOException
out
- output stream
java.io.IOException
- in case of problems with the PrintOutput
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |