Class AptReaderSource

  • All Implemented Interfaces:
    AptSource

    public class AptReaderSource
    extends Object
    implements AptSource
    Reader for apt source documents.
    • Constructor Detail

      • 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 Detail

      • 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.