All Packages Class Hierarchy This Package Previous Next Index
Class com.cometway.jerminal.commands.UnixFileCommand
com.cometway.jerminal.commands.JerminalCommand
|
+----com.cometway.jerminal.commands.UnixFileCommand
- public abstract class UnixFileCommand
- extends JerminalCommand
This abstract subclass of JerminalCommand provides the functionality to resolve
UNIX style pathnames. Commands that require pathnames as its arguments or require
the built in functionality of resolving pathnames should subclass this class.
-
pathSeparator
- local copy of the path separator character
-
UnixFileCommand(JerminalSession)
-
-
basename(String)
- This method returns the basename part of the pathname
-
filename(String)
- This method returns the filename part of the pathname
-
resolve(String)
- This method resolves paths which use ., .., and ~ symbols.
pathSeparator
public char pathSeparator
- local copy of the path separator character
UnixFileCommand
public UnixFileCommand(JerminalSession j) throws UnauthorizedAccessException
- Parameters:
- j - This is the JerminalSession which will be using this command
- Throws: UnauthorizedAccessException
- Throws this exception if the file access for the JerminalSession is set to false
basename
public String basename(String path)
- This method returns the basename part of the pathname
filename
public String filename(String path)
- This method returns the filename part of the pathname
resolve
public File resolve(String path)
- This method resolves paths which use ., .., and ~ symbols.
All Packages Class Hierarchy This Package Previous Next Index