public class ByLineReaderSource extends Object implements ByLineSource
ByLineSource
default implementationConstructor and Description |
---|
ByLineReaderSource(Reader in)
Creates the ByLineReaderSource.
|
ByLineReaderSource(Reader in,
String name)
Constructor for ByLineReaderSource.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
close the source.
|
int |
getLineNumber()
getLineNumber.
|
String |
getName()
getName.
|
String |
getNextLine()
getNextLine.
|
void |
unget(String s)
unget.
|
void |
ungetLine()
ungetLine.
|
public ByLineReaderSource(Reader in)
in
- real source :)public ByLineReaderSource(Reader in, String name)
Constructor for ByLineReaderSource.
public final String getNextLine() throws ParseException
getNextLine.
getNextLine
in interface ByLineSource
String
object.ParseException
- if any.public final String getName()
getName.
getName
in interface ByLineSource
String
object.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().Copyright © 2005–2024 The Apache Software Foundation. All rights reserved.