|
|||||||||
| 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.StringParser<H>
public abstract class StringParser<H extends Handler>
A StringParser is an abstract parser based on an
abstract method for parsing from a character slice. All parsing
methods will eventually call Parser.parseString(char[],int,int).
| Constructor Summary | |
|---|---|
protected |
StringParser()
Construct a string parser with no handler specified. |
protected |
StringParser(H handler)
Construct a string parser with the specified handler. |
| Method Summary | |
|---|---|
void |
parse(InputSource in)
Parse the specified input source. |
| Methods inherited from class com.aliasi.corpus.Parser |
|---|
getHandler, parse, parse, parseString, parseString, setHandler |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected StringParser()
protected StringParser(H handler)
handler - Handler for input events.| Method Detail |
|---|
public void parse(InputSource in)
throws IOException
The implementation here converts the input source to a
character slice using Streams.toCharArray(InputSource)
and passes the result to Parser.parseString(char[],int,int).
parse in class Parser<H extends Handler>in - Input source from which to read.
IOException - If there is an I/O error reading from the
input source.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||