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 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.
-
-
-
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 AptParseException
Returns a line of the apt source document.- Specified by:
getNextLine
in 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:
getLineNumber
in interfaceAptSource
- Returns:
- the line number.
-
close
public void close()
Closes the reader associated with this AptReaderSource.
-
-