public interface Parser
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Parser.ErrorHandler
Called whenever an error occurs.
|
| Modifier and Type | Method and Description |
|---|---|
void |
parse(Reader reader,
Data output,
Parser.ErrorHandler errorHandler,
ResourceLoader resourceLoader,
String dataFileName,
boolean ignoreAttributes)
Reads in a stream of characters and parses data from it, putting it into the given Data object.
|
void parse(Reader reader, Data output, Parser.ErrorHandler errorHandler, ResourceLoader resourceLoader, String dataFileName, boolean ignoreAttributes) throws IOException
reader - Reader used to read in the formatted data.output - Data object that the read data structure will be dumped into.errorHandler - Error callback to be called on any error.resourceLoader - ResourceLoader to use to read in included files.dataFileName - Name of a file that is read with reader. It is needed for the purpose of
handling include loops and error messages.ignoreAttributes - whether to store parsed HDF attributes in the Data object or not.IOException - when errors occur reading input.Copyright © 2010-2012 Google. All Rights Reserved.