|
GXPARSE hosted by |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.Reader
ca.gorman.util.scan.ScanningReader
public class ScanningReader
A Reader with a character scanning and
matching preprocessor.
| Constructor Summary | |
|---|---|
|
ScanningReader(Reader reader,
RuleList ruleList)
Construct with a RuleList. |
|
ScanningReader(Reader reader,
ScanRule... scanRule)
Construct with one or more ScanRules. |
protected |
ScanningReader(ScannerFactory scannerFactory,
Reader reader,
RuleList ruleList)
Construct with a RuleList and a different
Scanner. |
| Method Summary | |
|---|---|
void |
close()
|
int |
read()
|
int |
read(char[] chr,
int offset,
int length)
|
| Methods inherited from class java.io.Reader |
|---|
mark, markSupported, read, read, ready, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ScanningReader(ScannerFactory scannerFactory,
Reader reader,
RuleList ruleList)
throws IOException,
InterruptedException
Construct with a RuleList and a different
Scanner.
scannerFactory - your favourite Scanner
implementationreader - the source of characters to be scannedruleList - a list of scanning rules
IOException
InterruptedException
public ScanningReader(Reader reader,
RuleList ruleList)
throws IOException,
InterruptedException
Construct with a RuleList.
reader - the source of characters to be scannedruleList - a list of scanning rules
IOException
InterruptedException
public ScanningReader(Reader reader,
ScanRule... scanRule)
throws IOException,
InterruptedException
Construct with one or more ScanRules.
reader - the source of characters to be scannedscanRule - one or more scanning rules, or an array of scanning
rules
IOException
InterruptedException| Method Detail |
|---|
public void close()
throws IOException
close in interface Closeableclose in class ReaderIOException
public int read()
throws IOException
read in class ReaderIOException
public int read(char[] chr,
int offset,
int length)
throws IOException
read in class ReaderIOException
|
GXPARSE download | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||