Class NewfileCommand

java.lang.Object
  extended byShellCommand
      extended byNewfileCommand
All Implemented Interfaces:
Serializable

public class NewfileCommand
extends ShellCommand

The Juno shell command to create a text file. Usage:

     newfile filename contents
 

Version:
10
See Also:
Serialized Form

Method Summary
 void doIt(StringTokenizer args, Shell sh)
          Create a new TextFile in the current Directory.
 
Methods inherited from class ShellCommand
getArgString, getHelpString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

doIt

public void doIt(StringTokenizer args,
                 Shell sh)
          throws JunoException
Create a new TextFile in the current Directory.

Specified by:
doIt in class ShellCommand
Parameters:
args - the remainder of the command line.
sh - the current shell.
Throws:
JunoException - for reporting errors