public class AptReaderSource extends Object implements AptSource
Constructor and Description |
---|
AptReaderSource(Reader in)
Constructor: initialize reader.
|
AptReaderSource(Reader in,
String name)
Constructor: initialize reader.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the reader associated with this AptReaderSource.
|
int |
getLineNumber()
Gets the current line number while parsing the document.
|
String |
getName()
Returns the name the apt source document.
|
String |
getNextLine()
Returns a line of the apt source document.
|
public AptReaderSource(Reader in)
in
- the reader.public AptReaderSource(Reader in, String name)
in
- the reader.name
- the name of the sourcepublic String getNextLine() throws AptParseException
getNextLine
in interface AptSource
String
object.AptParseException
- if any.public int getLineNumber()
getLineNumber
in interface AptSource
public void close()
Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.