public abstract class StreamingDataHandler
extends org.jvnet.staxex.StreamingDataHandler
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 and Description |
---|
StreamingDataHandler(javax.activation.DataSource dataSource) |
StreamingDataHandler(Object o,
String s) |
StreamingDataHandler(URL url) |
getAllCommands, getBean, getCommand, getContent, getContentType, getDataSource, getInputStream, getName, getOutputStream, getPreferredCommands, getTransferData, getTransferDataFlavors, isDataFlavorSupported, setCommandMap, setDataContentHandlerFactory, writeTo
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.