|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.aliasi.corpus.Parser<H>
com.aliasi.corpus.InputSourceParser<H>
public abstract class InputSourceParser<H extends Handler>
An 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).
| Constructor Summary | |
|---|---|
protected |
InputSourceParser()
Construct an input source parser with no specified handler. |
protected |
InputSourceParser(H handler)
Construct an input source parser with the specified handler. |
| Method Summary | |
|---|---|
void |
parseString(char[] cs,
int start,
int end)
Parse the specified character slice. |
| Methods inherited from class com.aliasi.corpus.Parser |
|---|
getHandler, parse, parse, parse, parseString, setHandler |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected InputSourceParser()
protected InputSourceParser(H handler)
handler - Handler for input events.| Method Detail |
|---|
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||