|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataHandlerExt
| Method Summary | |
|---|---|
void |
deleteWhenReadOnce()
Deprecated. Use readOnce() or purgeDataSource() instead. |
void |
purgeDataSource()
This method will give users an option to trigger a purge on temporary attachment files. |
java.io.InputStream |
readOnce()
Get an InputStream that consumes the content of this data handler. |
| Method Detail |
|---|
java.io.InputStream readOnce()
throws java.io.IOException
InputStream that consumes the content of this data handler. This method is
similar to DataHandler.getInputStream() except that it can be invoked only once. If
the content has not been buffered yet, then the implementation may choose to enable streaming
of the content.
The implementation ensures that after the returned input steam is consumed, the data handler
will be in the same state as after a call to purgeDataSource().
null
java.io.IOException - if an error occurs
void purgeDataSource()
throws java.io.IOException
java.io.IOException
void deleteWhenReadOnce()
throws java.io.IOException
readOnce() or purgeDataSource() instead.
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||