H - the type of handler to which this parser sends eventspublic abstract class InputSourceParser<H extends Handler> extends Parser<H>
InputSourceParser is an abstract parser based
on an abstract method for parsing from an input source. All
parsing methods will eventually call Parser.parse(InputSource).| Modifier | Constructor and Description |
|---|---|
protected |
InputSourceParser()
Construct an input source parser with no specified handler.
|
protected |
InputSourceParser(H handler)
Construct an input source parser with the specified handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
parseString(char[] cs,
int start,
int end)
Parse the specified character slice.
|
getHandler, parse, parse, parse, parse, parse, parseString, setHandlerprotected InputSourceParser()
protected InputSourceParser(H handler)
handler - Handler for input events.public void parseString(char[] cs,
int start,
int end)
throws IOException
This method is implemented by parsing an input source created from a character array reader based on the specified character slice.
parseString in class Parser<H extends Handler>cs - Underlying charactes for slice.start - Index of first character in slice.end - Index of one past the last character in the slice.IOException - If there is an I/O error parsing from the string.IllegalArgumentException - if the specified indices are out
of bounds of the specified character array.Copyright © 2016 Alias-i, Inc.. All rights reserved.