net.damf.console
Class Navigate

java.lang.Object
  extended by net.damf.console.comperation.command.ConsoleCommand
      extended by net.damf.console.Navigate
All Implemented Interfaces:
Comperation

public class Navigate
extends ConsoleCommand


Field Summary
private  java.io.File current_dir
           
private  java.lang.String[] param
           
 
Fields inherited from class net.damf.console.comperation.command.ConsoleCommand
flag, fluked, inited
 
Constructor Summary
Navigate()
           
Navigate(java.io.File dir)
           
 
Method Summary
private  boolean cd(java.lang.String newDir)
           
 boolean exists(java.lang.String child)
           
 java.lang.String getPath()
           
 java.lang.String getPath(java.lang.String child)
           
 Comperation giveFiles(java.lang.String[] files)
           
private  java.io.File[] ls()
           
 java.lang.String[] make(java.lang.String[] param)
           
 boolean perform()
           
private  void printFile(java.io.File file)
           
private  void printFile(java.io.File file, boolean tabEnd)
           
private  void printFiles(java.io.File[] files)
           
 java.lang.String printIncomplete(java.lang.String str)
           
 boolean requiresCommand()
           
 
Methods inherited from class net.damf.console.comperation.command.ConsoleCommand
argumentsNeeded, crunchQuotes, gatherFlags, isInited
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

current_dir

private java.io.File current_dir

param

private java.lang.String[] param
Constructor Detail

Navigate

public Navigate()

Navigate

public Navigate(java.io.File dir)
Method Detail

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