|
ProGuard | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectproguard.WordReader
An abstract reader of words, with the possibility to include other readers. Words are separated by spaces or broken off at delimiters. Words containing spaces or delimiters can be quoted with single or double quotes. Comments (everything starting with '#' on a single line) are ignored.
| Constructor Summary | |
WordReader()
|
|
| Method Summary | |
void |
includeWordReader(WordReader newIncludeWordReader)
Specifies to start reading words from the given WordReader. |
String |
lastComments()
Returns the comments collected before returning the last word. |
protected abstract String |
lineLocationDescription()
Constructs a readable description of the current WordReader position. |
String |
locationDescription()
Constructs a readable description of the current position in this WordReader and its included WordReader objects. |
protected abstract String |
nextLine()
Reads a line from this WordReader, or from one of its active included WordReader objects. |
String |
nextWord()
Reads a word from this WordReader, or from one of its active included WordReader objects. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WordReader()
| Method Detail |
public void includeWordReader(WordReader newIncludeWordReader)
newIncludeWordReader - the WordReader that will start reading words.
public String nextWord()
throws IOException
IOException
public String lastComments()
throws IOException
null if there weren't any.
IOExceptionpublic String locationDescription()
protected abstract String nextLine()
throws IOException
IOExceptionprotected abstract String lineLocationDescription()
|
ProGuard | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||