|
Groovy 1.7.8 | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD | |||||||
org.codehaus.groovy.control.io.ReaderSourceorg.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(). |
String
|
getLine(int lineNumber, Janitor janitor)
Returns a line from the source, or null, if unavailable. |
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 String getLine(int lineNumber, Janitor janitor)
lineNumber - the number of the line of interestjanitor - helper to clean up afterwards
public Reader getReader()
Copyright © 2003-2010 The Codehaus. All rights reserved.