|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReaderSource
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(). |
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. |
Method Detail |
---|
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 afterwards
void cleanup()
cleanup
in interface HasCleanup
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |