|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ioutil.LineSource
Class LineSource implements the ILineSource methods for its subclasses. Subclasses may reimplement these methods as needed.
Constructor Summary | |
LineSource()
|
Method Summary | |
void |
advance()
src.advance() advances the input position of src to the next line. |
LineScanner |
current()
src.current() returns the line at the current position of src. |
java.lang.String |
getFileName()
src.getFileName() Returns the name of the file from which src reads lines. |
LineSource |
getIncludedFrom()
src.getIncludedFrom() returns the LineSource that src is included from, or null if there is no such LineSource. |
int |
getLineNumber()
src.getLineNumber() returns the line number of the current line in src. |
boolean |
more()
src.more() returns true if there is a line at the current input position of src, false if not. |
void |
setEchoOff()
src.setEchoOff() turns echoing off for src if src supports echo control. |
void |
setEchoOn()
src.setEchoOn() turns echoing on for src if src supports echo control. |
void |
setIncludedFrom(LineSource from)
src.setIncludedFrom(from) sets the includedFrom link for src to from. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public LineSource()
Method Detail |
public boolean more() throws java.io.IOException
public LineScanner current() throws java.io.IOException, java.lang.IllegalArgumentException
Precondition: src.more() is true.
public void advance() throws java.io.IOException, java.lang.IllegalArgumentException
Precondition: src.more() is true.
public int getLineNumber()
public java.lang.String getFileName()
public void setEchoOn()
public void setEchoOff()
public LineSource getIncludedFrom()
public void setIncludedFrom(LineSource from)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |