|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.activation.DataHandler
org.apache.axiom.attachments.lifecycle.impl.DataHandlerExtImpl
public class DataHandlerExtImpl
Constructor Summary | |
---|---|
DataHandlerExtImpl(DataHandler dataHandler,
LifecycleManager manager)
Deprecated. |
Method Summary | |
---|---|
void |
deleteWhenReadOnce()
Deprecated. |
void |
purgeDataSource()
Deprecated. This method will give users an option to trigger a purge on temporary attachment files. |
InputStream |
readOnce()
Deprecated. Get an InputStream that consumes the content of this data handler. |
void |
update(Observable o,
Object arg)
Deprecated. |
Methods inherited from class javax.activation.DataHandler |
---|
getAllCommands, getBean, getCommand, getContent, getContentType, getDataSource, getInputStream, getName, getOutputStream, getPreferredCommands, getTransferData, getTransferDataFlavors, isDataFlavorSupported, setCommandMap, setDataContentHandlerFactory, writeTo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataHandlerExtImpl(DataHandler dataHandler, LifecycleManager manager)
Method Detail |
---|
public InputStream readOnce() throws IOException
DataHandlerExt
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 DataHandlerExt.purgeDataSource()
.
readOnce
in interface DataHandlerExt
null
IOException
- if an error occurspublic void deleteWhenReadOnce() throws IOException
deleteWhenReadOnce
in interface DataHandlerExt
IOException
public void purgeDataSource() throws IOException
DataHandlerExt
purgeDataSource
in interface DataHandlerExt
IOException
public void update(Observable o, Object arg)
update
in interface Observer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |