HasCleanup, ReaderSourceFileReaderSource, InputStreamReaderSource, StringReaderSource, URLReaderSourcepublic abstract class AbstractReaderSource extends Object implements ReaderSource
| Modifier and Type | Field | Description |
|---|---|---|
protected CompilerConfiguration |
configuration |
| Constructor | Description |
|---|---|
AbstractReaderSource(CompilerConfiguration configuration) |
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetReader, getURIprotected CompilerConfiguration configuration
public AbstractReaderSource(CompilerConfiguration configuration)
public boolean canReopenSource()
canReopenSource in interface ReaderSourcepublic String getLine(int lineNumber, Janitor janitor)
getLine in interface ReaderSourcelineNumber - the number of the line of interestjanitor - helper to clean up afterwardspublic void cleanup()
cleanup in interface HasCleanupcleanup in interface ReaderSource