edu.unh.sdb.util.CommandProcessor
Class CommandProcessor
java.lang.Object
edu.unh.sdb.util.CommandProcessor.CommandProcessor
public class CommandProcessor
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandProcessor
public CommandProcessor()
CommandProcessor
public CommandProcessor(java.lang.String filename)
throws java.io.IOException
- Throws:
java.io.IOException
CommandProcessor
public CommandProcessor(java.io.Reader rdr)
CommandProcessor
public CommandProcessor(java.io.InputStream input)
newReader
public void newReader(java.io.Reader rdr)
newReader
public void newReader(java.io.InputStream input)
newReader
public boolean newReader(java.lang.String filename)
processAllCommands
public void processAllCommands()
throws java.io.IOException
- Throws:
java.io.IOException
commentChar
public void commentChar(char cChar)
setCommentAction
public void setCommentAction(CommandAction comAction)
setEOFAction
public void setEOFAction(CommandAction comAction)
readAllCommands
public void readAllCommands()
throws java.io.IOException
- Throws:
java.io.IOException
getLine
public java.lang.String getLine()
parseCommand
public boolean parseCommand(java.lang.String command)
throws java.io.IOException
- Throws:
java.io.IOException
nextCommand
public boolean nextCommand()
throws java.io.IOException
- Throws:
java.io.IOException
defineCommand
public void defineCommand(java.lang.String cmd,
java.lang.String parms,
CommandAction act)
throws CommandDefException
- Throws:
CommandDefException
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- Throws:
java.io.IOException