Package com.sun.xml.ws.developer
Class StreamingDataHandler
java.lang.Object
javax.activation.DataHandler
org.jvnet.staxex.StreamingDataHandler
com.sun.xml.ws.developer.StreamingDataHandler
- All Implemented Interfaces:
Transferable
,Closeable
,AutoCloseable
- Direct Known Subclasses:
DataSourceStreamingDataHandler
,MIMEPartStreamingDataHandler
Implementation of
StreamingDataHandler
to access MIME
attachments efficiently. Applications can use the additional methods and decide
on how to access the attachment data in JAX-WS applications.
for e.g.: DataHandler dh = proxy.getData(); StreamingDataHandler sdh = (StreamingDataHandler)dh; // readOnce() doesn't store attachment on the disk in some cases // for e.g when only one huge attachment after soap envelope part in MIME message InputStream in = sdh.readOnce(); ... in.close(); sdh.close();
- Author:
- Jitendra Kotamraju
-
Constructor Summary
ConstructorDescriptionStreamingDataHandler
(Object o, String s) StreamingDataHandler
(URL url) StreamingDataHandler
(javax.activation.DataSource dataSource) -
Method Summary
Methods inherited from class org.jvnet.staxex.StreamingDataHandler
close, getHrefCid, moveTo, readOnce, setHrefCid
Methods inherited from class javax.activation.DataHandler
getAllCommands, getBean, getCommand, getContent, getContentType, getDataSource, getInputStream, getName, getOutputStream, getPreferredCommands, getTransferData, getTransferDataFlavors, isDataFlavorSupported, setCommandMap, setDataContentHandlerFactory, writeTo
-
Constructor Details
-
StreamingDataHandler
-
StreamingDataHandler
-
StreamingDataHandler
public StreamingDataHandler(javax.activation.DataSource dataSource)
-