Package org.apache.maven.doxia.util
Class ByLineReaderSource
java.lang.Object
org.apache.maven.doxia.util.ByLineReaderSource
- All Implemented Interfaces:
ByLineSource
ByLineSource
default implementation-
Constructor Summary
ConstructorsConstructorDescriptionCreates the ByLineReaderSource.ByLineReaderSource
(Reader in, String name) Constructor for ByLineReaderSource. -
Method Summary
-
Constructor Details
-
Method Details
-
getNextLine
getNextLine.
- Specified by:
getNextLine
in interfaceByLineSource
- Returns:
- a
String
object. - Throws:
ParseException
- if any.
-
getName
getName.
- Specified by:
getName
in interfaceByLineSource
- Returns:
- a
String
object.
-
getLineNumber
public final int getLineNumber()getLineNumber.
- Specified by:
getLineNumber
in interfaceByLineSource
- Returns:
- a int.
-
close
public final void close()close the source.- Specified by:
close
in interfaceByLineSource
-
ungetLine
public final void ungetLine()ungetLine.
This should throw a java.lang.IllegalStateException if called more than one time without calling getNextLine().- Specified by:
ungetLine
in interfaceByLineSource
-
unget
unget.
- Specified by:
unget
in interfaceByLineSource
- 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().
-