public interface ReaderSource extends HasCleanup
Modifier and Type | Method and Description |
---|---|
boolean |
canReopenSource()
Returns true if the source can be restarted (ie.
|
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.
|
java.net.URI |
getURI()
Returns a URI for this source.
|
java.io.Reader getReader() throws java.io.IOException
java.io.IOException
- if there was an error opening for streamboolean canReopenSource()
java.lang.String getLine(int lineNumber, Janitor janitor)
lineNumber
- the number of the line of interestjanitor
- helper to clean up afterwardsvoid cleanup()
cleanup
in interface HasCleanup
java.net.URI getURI()