Class AptReaderSource

java.lang.Object
org.apache.maven.doxia.module.apt.AptReaderSource
All Implemented Interfaces:
AptSource

public class AptReaderSource extends Object implements AptSource
Reader for apt source documents.
  • Field Details

    • reader

      private LineNumberReader reader
      A reader.
    • lineNumber

      private int lineNumber
      lineNumber.
    • name

      private String name
      The name, e.g. the filename.
  • Constructor Details

    • AptReaderSource

      public AptReaderSource(Reader in)
      Constructor: initialize reader.
      Parameters:
      in - the reader.
    • AptReaderSource

      public AptReaderSource(Reader in, String name)
      Constructor: initialize reader.
      Parameters:
      in - the reader.
      name - the name of the source
  • Method Details

    • getNextLine

      public String getNextLine() throws AptParseException
      Returns a line of the apt source document.
      Specified by:
      getNextLine in interface AptSource
      Returns:
      a String object.
      Throws:
      AptParseException - if any.
    • getName

      public String getName()
      Returns the name the apt source document.
      Specified by:
      getName in interface AptSource
      Returns:
      a String object.
    • getLineNumber

      public int getLineNumber()
      Gets the current line number while parsing the document.
      Specified by:
      getLineNumber in interface AptSource
      Returns:
      a int.
    • close

      public void close()
      Closes the reader associated with this AptReaderSource.