org.apache.maven.doxia.module.apt
Class AptReaderSource

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

public class AptReaderSource
extends Object
implements AptSource

Reader for apt source documents.

Version:
$Id: AptReaderSource.java 746982 2009-02-23 12:25:50Z vsiveton $

Constructor Summary
AptReaderSource(Reader in)
          Constructor: intialize reader.
 
Method Summary
 void close()
          Closes the reader associated with this AptReaderSource.
 int getLineNumber()
          Gets the current line number while parsing the document.
 String getName()
          Returns the name the apt source document.
 String getNextLine()
          Returns a line of the apt source document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AptReaderSource

public AptReaderSource(Reader in)
Constructor: intialize reader.

Parameters:
in - the reader.
Method Detail

getNextLine

public String getNextLine()
                   throws AptParseException
Returns a line of the apt source document.

Specified by:
getNextLine in interface AptSource
Returns:
a line of the apt source.
Throws:
AptParseException - if the document can't be parsed.

getName

public String getName()
Returns the name the apt source document.

Specified by:
getName in interface AptSource
Returns:
the name the apt source document.

getLineNumber

public int getLineNumber()
Gets the current line number while parsing the document.

Specified by:
getLineNumber in interface AptSource
Returns:
the line number.

close

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



Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.