| Constructor | Description |
|---|---|
AptReaderSource(java.io.Reader in) |
Constructor: initialize reader.
|
AptReaderSource(java.io.Reader in,
java.lang.String name) |
Constructor: initialize reader.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Closes the reader associated with this AptReaderSource.
|
int |
getLineNumber() |
Gets the current line number while parsing the document.
|
java.lang.String |
getName() |
Returns the name the apt source document.
|
java.lang.String |
getNextLine() |
Returns a line of the apt source document.
|
public AptReaderSource(java.io.Reader in)
in - the reader.public AptReaderSource(java.io.Reader in,
java.lang.String name)
in - the reader.name - the name of the sourcepublic java.lang.String getNextLine()
throws AptParseException
getNextLine in interface AptSourceAptParseException - if the document can't be parsed.public java.lang.String getName()
public int getLineNumber()
getLineNumber in interface AptSourcepublic void close()