|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--edu.nmu.os.shell.ShellFactoryImplParamParser
Parses a given String array to assist in the construction of a new ShellImpl
ShellImpl,
ShellFactoryImpl| Constructor Summary | |
ShellFactoryImplParamParser()
Constructs a new ShellFactoryImplParamParser with an empty array |
|
ShellFactoryImplParamParser(java.lang.String[] args)
Constructs a new ShellFactoryImplParamParser |
|
| Method Summary | |
java.lang.String |
doHelp()
The help message to be printed |
java.io.PrintStream |
getExitStream()
The PrintStream to which exit messages should be printed |
java.io.InputStream |
getInputStream()
The InputStream from which the Shell should read. |
protected java.io.InputStream |
getInputStream(java.lang.String filename)
Converts a file name to an InputStream |
protected java.io.PrintStream |
getPrintStream(java.lang.String filename)
Converts a file name to an PrintStream |
java.io.PrintStream |
getThrowableStream()
The PrintStream to which Throwables should be printed |
protected void |
setDefaults()
Sets the default values for private variables |
boolean |
shouldDoHelp()
Whether or not the help message should be printed |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ShellFactoryImplParamParser()
public ShellFactoryImplParamParser(java.lang.String[] args)
args - the arguments to parse| Method Detail |
protected void setDefaults()
public boolean shouldDoHelp()
public java.io.PrintStream getExitStream()
public java.io.PrintStream getThrowableStream()
public java.io.InputStream getInputStream()
public java.lang.String doHelp()
protected java.io.InputStream getInputStream(java.lang.String filename)
throws java.io.FileNotFoundException
filename - the file to read from
java.io.FileNotFoundException - if the file could not be found
protected java.io.PrintStream getPrintStream(java.lang.String filename)
throws java.io.FileNotFoundException
filename - the file to write to
java.io.FileNotFoundException - if the file could not be found
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||