| java.lang.Object org.codehaus.groovy.control.io.AbstractReaderSource
All known Subclasses: org.codehaus.groovy.control.io.URLReaderSource, org.codehaus.groovy.control.io.FileReaderSource, org.codehaus.groovy.control.io.StringReaderSource, org.codehaus.groovy.control.io.InputStreamReaderSource,
AbstractReaderSource | abstract public class AbstractReaderSource implements ReaderSource(Code) | | For ReaderSources that can choose a parent class, a base that
provides common functionality.
author: Chris Poirier version: $Id: AbstractReaderSource.java 2361 2005-06-19 15:41:38Z cstein $ |
Method Summary | |
public boolean | canReopenSource() Returns true if the source can be restarted (ie. | public void | cleanup() Cleans up any cached resources used by getLine(). | public String | getLine(int lineNumber, Janitor janitor) Returns a line from the source, or null, if unavailable. |
canReopenSource | public boolean canReopenSource()(Code) | | Returns true if the source can be restarted (ie. if getReader()
will return non-null on subsequent calls.
|
cleanup | public void cleanup()(Code) | | Cleans up any cached resources used by getLine().
|
getLine | public 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.
|
|
|