net.damf.console
Class Navigate
java.lang.Object
net.damf.console.comperation.command.ConsoleCommand
net.damf.console.Navigate
- All Implemented Interfaces:
- Comperation
public class Navigate
- extends ConsoleCommand
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
current_dir
private java.io.File current_dir
param
private java.lang.String[] param
Navigate
public Navigate()
Navigate
public Navigate(java.io.File dir)
exists
public boolean exists(java.lang.String child)
getPath
public java.lang.String getPath()
getPath
public java.lang.String getPath(java.lang.String child)
printIncomplete
public java.lang.String printIncomplete(java.lang.String str)
cd
private boolean cd(java.lang.String newDir)
ls
private java.io.File[] ls()
printFile
private void printFile(java.io.File file)
printFile
private void printFile(java.io.File file,
boolean tabEnd)
printFiles
private void printFiles(java.io.File[] files)
requiresCommand
public final boolean requiresCommand()
- Specified by:
requiresCommand
in interface Comperation
- Overrides:
requiresCommand
in class ConsoleCommand
make
public java.lang.String[] make(java.lang.String[] param)
- Specified by:
make
in interface Comperation
- Specified by:
make
in class ConsoleCommand
giveFiles
public Comperation giveFiles(java.lang.String[] files)
- Specified by:
giveFiles
in interface Comperation
- Specified by:
giveFiles
in class ConsoleCommand
perform
public boolean perform()
- Specified by:
perform
in interface Comperation
- Specified by:
perform
in class ConsoleCommand