|
|||||||||
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(). |
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. |
Method Detail |
---|
Reader getReader() throws IOException
IOException
- if there was an error opening for streamboolean canReopenSource()
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
|
Copyright © 2003-2009 The Codehaus. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |