Class FileInfo

java.lang.Object
  |
  +--FileInfo

public class FileInfo
extends java.lang.Object

The FileInfo class serves to evaluate file and directory information. This class includes methods for executing the current command, returning the name of a command, and expanding the arguments of a command to include specified variables, if any.


Field Summary
protected  java.lang.String myCommand
          Current command.
protected  java.lang.String myCurrentPath
          Current path.
protected  java.lang.String myName
          File path entered by user.
protected  java.lang.String myResult
          Error message for non-existent file.
protected  java.lang.String myTempPath
          Resultant path name.
 
Method Summary
 java.lang.String addResult()
          Returns error message if file does not exist.
 java.lang.String getPath()
          Returns a file path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myName

protected java.lang.String myName
File path entered by user.


myCommand

protected java.lang.String myCommand
Current command.


myCurrentPath

protected java.lang.String myCurrentPath
Current path.


myResult

protected java.lang.String myResult
Error message for non-existent file.


myTempPath

protected java.lang.String myTempPath
Resultant path name.

Method Detail

addResult

public java.lang.String addResult()
Returns error message if file does not exist.

Returns:
myResult.

getPath

public java.lang.String getPath()
Returns a file path.

Returns:
myTempPath.