|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.control.io.AbstractReaderSource
public abstract class AbstractReaderSource
For ReaderSources that can choose a parent class, a base that provides common functionality.
Field Summary | |
---|---|
protected CompilerConfiguration |
configuration
|
Constructor Summary | |
---|---|
AbstractReaderSource(CompilerConfiguration configuration)
Standard construction stuff. |
Method Summary | |
---|---|
boolean |
canReopenSource()
Returns true if the source can be restarted (ie. |
void |
cleanup()
Cleans up any cached resources used by getLine(). |
java.lang.String |
getLine(int lineNumber,
Janitor janitor)
Returns a line from the source, or null, if unavailable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.codehaus.groovy.control.io.ReaderSource |
---|
getReader |
Field Detail |
---|
protected CompilerConfiguration configuration
Constructor Detail |
---|
public AbstractReaderSource(CompilerConfiguration configuration)
Method Detail |
---|
public boolean canReopenSource()
canReopenSource
in interface ReaderSource
public java.lang.String getLine(int lineNumber, Janitor janitor)
getLine
in interface ReaderSource
public void cleanup()
cleanup
in interface HasCleanup
cleanup
in interface ReaderSource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |