Class AptReaderSource
- java.lang.Object
-
- org.apache.maven.doxia.module.apt.AptReaderSource
-
-
Constructor Summary
Constructors Constructor Description AptReaderSource(java.io.Reader in)Constructor: initialize reader.AptReaderSource(java.io.Reader in, java.lang.String name)Constructor: initialize reader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes the reader associated with this AptReaderSource.intgetLineNumber()Gets the current line number while parsing the document.java.lang.StringgetName()Returns the name the apt source document.java.lang.StringgetNextLine()Returns a line of the apt source document.
-
-
-
Constructor Detail
-
AptReaderSource
public AptReaderSource(java.io.Reader in)
Constructor: initialize reader.- Parameters:
in- the reader.
-
AptReaderSource
public AptReaderSource(java.io.Reader in, java.lang.String name)Constructor: initialize reader.- Parameters:
in- the reader.name- the name of the source
-
-
Method Detail
-
getNextLine
public java.lang.String getNextLine() throws AptParseExceptionReturns a line of the apt source document.- Specified by:
getNextLinein interfaceAptSource- Returns:
- a line of the apt source.
- Throws:
AptParseException- if the document can't be parsed.
-
getName
public java.lang.String getName()
Returns the name the apt source document.
-
getLineNumber
public int getLineNumber()
Gets the current line number while parsing the document.- Specified by:
getLineNumberin interfaceAptSource- Returns:
- the line number.
-
close
public void close()
Closes the reader associated with this AptReaderSource.
-
-