public class Part21LoggingParser extends Part21Parser
Part21Parser.State| Modifier and Type | Field and Description |
|---|---|
PrintStream |
out
The output stream for the parser
|
convert, fail_fast, keep_partial, status_freq| Constructor and Description |
|---|
Part21LoggingParser() |
Part21LoggingParser(PrintStream ps) |
| Modifier and Type | Method and Description |
|---|---|
void |
reportError(String fname,
int lineno,
String message)
Report an error in the input file.
|
void |
statusUpdate(Part21Parser.State st)
Display the fraction completed to the log file.
|
public PrintStream out
public Part21LoggingParser(PrintStream ps) throws STDevException
STDevExceptionpublic Part21LoggingParser()
throws STDevException
STDevExceptionpublic void reportError(String fname, int lineno, String message)
reportError in class Part21Parserfname - The Part21 file.lineno - The line number where the error occurred.message - The error message to be reported.public void statusUpdate(Part21Parser.State st) throws CanceledException
status_freq to a
non-zero value.statusUpdate in class Part21Parserst - The parser state information. This can be queried to
obtain the number of bytes in the file, the number of bytes ready by
the parser, and the number is insteances read.CanceledException - for subtypes to use. This method never
throws the exception.