| org.codehaus.groovy.control.io.ReaderSource
All known Subclasses: org.codehaus.groovy.control.io.AbstractReaderSource,
ReaderSource | public interface ReaderSource extends HasCleanup(Code) | | An interface for things that can supply (and resupply) a Reader
on a source stream.
author: Chris Poirier version: $Id: ReaderSource.java 1082 2004-04-19 07:29:47Z cpoirier $ |
Method Summary | |
boolean | canReopenSource() Returns true if the source can be restarted (ie. | 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. |
canReopenSource | boolean canReopenSource()(Code) | | Returns true if the source can be restarted (ie. if getReader()
will return non-null on subsequent calls.
|
cleanup | void cleanup()(Code) | | Cleans up any cached resources used by getLine().
|
getLine | String getLine(int lineNumber, Janitor janitor)(Code) | | Returns a line from the source, or null, if unavailable. If
you supply a Janitor, resources will be cached.
|
getReader | Reader getReader() throws IOException(Code) | | Returns a new Reader on the underlying source object. Returns
null if the source can't be reopened.
|
|
|