|
Buju 0.4 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectbiz.bbeans.util.BInputStreamLoader
Utility to load an InputStream into a String. An instance of BInputStreamLoader is re-usable; in other words, one BInputStreamLoader can load more than one InputStream.
| Constructor Summary | |
BInputStreamLoader()
Create a new BInputStreamLoader. |
|
| Method Summary | |
static BInputStreamLoader |
getDefaultInstance()
Get an instance of BInputStreamLoader which implements processLine by simply returning the line
untouched. |
String |
load(InputStreamReader in)
Load the data from the given InputStreamReader into a String. |
abstract String |
processLine(String line)
Process the line of data. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BInputStreamLoader()
processLine if you
use this constructor. Use getDefaultInstance
for a default implementation which does no processing of
the loaded data.
| Method Detail |
public String load(InputStreamReader in)
throws IOException
processLine
method.
in - InputStreamReader to load from.
IOException - If I/O exception occurs.public abstract String processLine(String line)
line - Line to process.
public static BInputStreamLoader getDefaultInstance()
processLine by simply returning the line
untouched.
|
Buju 0.4 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||