Class AptReaderSource
java.lang.Object
org.apache.maven.doxia.module.apt.AptReaderSource
- All Implemented Interfaces:
AptSource
Reader for apt source documents.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intlineNumber.private StringThe name, e.g.private LineNumberReaderA reader. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor: initialize reader.AptReaderSource(Reader in, String name) Constructor: initialize reader. -
Method Summary
-
Field Details
-
reader
A reader. -
lineNumber
private int lineNumberlineNumber. -
name
The name, e.g. the filename.
-
-
Constructor Details
-
AptReaderSource
Constructor: initialize reader.- Parameters:
in- the reader.
-
AptReaderSource
Constructor: initialize reader.- Parameters:
in- the reader.name- the name of the source
-
-
Method Details
-
getNextLine
Returns a line of the apt source document.- Specified by:
getNextLinein interfaceAptSource- Returns:
- a
Stringobject. - Throws:
AptParseException- if any.
-
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:
- a int.
-
close
public void close()Closes the reader associated with this AptReaderSource.
-