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 int
lineNumber.private String
The name, e.g.private LineNumberReader
A 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:
getNextLine
in interfaceAptSource
- Returns:
- a
String
object. - 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:
getLineNumber
in interfaceAptSource
- Returns:
- a int.
-
close
public void close()Closes the reader associated with this AptReaderSource.
-