|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
org.codehaus.groovy.control.io.ReaderSource org.codehaus.groovy.control.HasCleanup
public interface ReaderSource extends HasCleanup
An interface for things that can supply (and potentially resupply) a Reader on a source stream.
Method Summary | |
---|---|
boolean
|
canReopenSource()
Returns true if the source can be restarted (ie. if getReader() will return non-null on subsequent calls. |
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. |
java.io.Reader
|
getReader()
Returns a new Reader on the underlying source object. |
Methods inherited from interface HasCleanup | |
---|---|
cleanup |
Method Detail |
---|
public boolean canReopenSource()
public void cleanup()
public java.lang.String getLine(int lineNumber, Janitor janitor)
lineNumber
- the number of the line of interestjanitor
- helper to clean up afterwards
public java.io.Reader getReader()
Groovy Documentation