|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.doxia.util.ByLineReaderSource
public class ByLineReaderSource
ByLineSource
default implementation
Constructor Summary | |
---|---|
ByLineReaderSource(Reader in)
Creates the ByLineReaderSource. |
Method Summary | |
---|---|
void |
close()
close the source. |
int |
getLineNumber()
getLineNumber. |
String |
getName()
getName. |
String |
getNextLine()
getNextLine. |
void |
unget(String s)
unget. |
void |
ungetLine()
ungetLine. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ByLineReaderSource(Reader in)
in
- real source :)Method Detail |
---|
public final String getNextLine() throws ParseException
getNextLine.
getNextLine
in interface ByLineSource
null
if we reached the end.
ParseException
- on I/O errorpublic final String getName()
getName.
getName
in interface ByLineSource
public final int getLineNumber()
getLineNumber.
getLineNumber
in interface ByLineSource
public final void close()
close
in interface ByLineSource
public final void ungetLine()
ungetLine.
This should throw a java.lang.IllegalStateException if called more than one time without calling getNextLine().
ungetLine
in interface ByLineSource
public final void unget(String s)
unget.
unget
in interface ByLineSource
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().
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |