|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OutputStreamLoader
This class gives some lifecycle to an OutputStream.
There may be times (particularly with downloading files to browsers) when it
is not clear if the data will ever be read.
A call to load(OutputStream) is a signal that we really to want data
now and that if any processing is needed, if should be done.
A call to close() is a signal that whether or not getInputStream was
called, the data is no longer required.
| Method Summary | |
|---|---|
void |
close()
This method indicates that whether or not this resource has been read, it is not longer required. |
void |
load(java.io.OutputStream out)
Write all the data to the given output stream. |
| Method Detail |
|---|
void load(java.io.OutputStream out)
throws java.io.IOException
java.io.IOException
void close()
throws java.io.IOException
load(OutputStream) when it has
finished reading from the stream, or when it has decided that it never
will call load(OutputStream).
java.io.IOException
|
Copyright ยจ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||