org.apache.maven.doxia.module.common

Interface ByLineSource

Known Implementing Classes:
ByLineReaderSource

public interface ByLineSource

The token are the new lines :)
Author:
Juan F. Codagnone
Since:
Nov 4, 2005

Method Summary

void
close()
close the source ...
int
getLineNumber()
String
getName()
String
getNextLine()
void
unget(String s)
void
ungetLine()

Method Details

close

public void close()
close the source ...

getLineNumber

public int getLineNumber()
Returns:
the current line number

getName

public String getName()
Returns:
the name of the input. could be the filename for example

getNextLine

public String getNextLine()
            throws ParseException
Returns:
the next line. null if we reached the end.
Throws:
ParseException - on I/O error

unget

public void unget(String s)
            throws IllegalStateException
Parameters:
s - some text to push back to the parser

ungetLine

public void ungetLine()
            throws IllegalStateException