public class CommandReader extends BufferedReader
Console.COMMENT_TOKEN) will be ignored.
|Constructor and Description|
Creates a new command reader and prepares the input stream
Creates a new command reader and prepares the command file given by the filename
|Modifier and Type||Method and Description|
close, mark, markSupported, read, read, ready, reset, skip
public CommandReader(String filename) throws FileNotFoundException
filename- the filename of the command file
FileNotFoundException- if the named file does not exist, is a directory rather than a regular file, or for some other reason cannot be opened for reading.
public CommandReader(InputStream inStream)
inStreamto read commands from the stream.
inStream- the input stream providing the commands