Package org.apache.maven.doxia.util
Interface ByLineSource
-
- All Known Implementing Classes:
ByLineReaderSource
public interface ByLineSourceThe token are the new lines :)- Since:
- Nov 4, 2005
- Version:
- $Id$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()close the source.intgetLineNumber()getLineNumber.java.lang.StringgetName()getName.java.lang.StringgetNextLine()getNextLine.voidunget(java.lang.String s)unget.voidungetLine()ungetLine.
-
-
-
Method Detail
-
getNextLine
java.lang.String getNextLine() throws ParseExceptiongetNextLine.
- Returns:
- the next line.
nullif we reached the end. - Throws:
ParseException- on I/O error
-
getName
java.lang.String getName()
getName.
- Returns:
- the name of the input. could be the filename for example.
-
getLineNumber
int getLineNumber()
getLineNumber.
- Returns:
- the current line number.
-
ungetLine
void ungetLine()
ungetLine.
This should throw a java.lang.IllegalStateException if called more than one time without calling getNextLine().
-
unget
void unget(java.lang.String s)
unget.
- Parameters:
s- some text to push back to the parser. This should throw a java.lang.IllegalStateException if called more than one time without calling getNextLine().
-
close
void close()
close the source.
-
-