|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.activation.DataHandler
org.jvnet.staxex.StreamingDataHandler
com.sun.xml.ws.developer.StreamingDataHandler
com.sun.xml.ws.encoding.MIMEPartStreamingDataHandler
public class 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();
| Constructor Summary | |
|---|---|
MIMEPartStreamingDataHandler(org.jvnet.mimepull.MIMEPart part)
|
|
| Method Summary | |
|---|---|
void |
close()
|
void |
moveTo(File file)
|
InputStream |
readOnce()
|
| 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 MIMEPartStreamingDataHandler(org.jvnet.mimepull.MIMEPart part)
| Method Detail |
|---|
public InputStream readOnce()
throws IOException
readOnce in class org.jvnet.staxex.StreamingDataHandlerIOException
public void moveTo(File file)
throws IOException
moveTo in class org.jvnet.staxex.StreamingDataHandlerIOException
public void close()
throws IOException
close in interface Closeableclose in class org.jvnet.staxex.StreamingDataHandlerIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||