|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.soa.esb.actions.soap.attachment.XmlDataContentHandler
public class XmlDataContentHandler
XmlDataContentHandler
is a JAF content handler that provides
marchalling/unmarshalling between a StreamSource
and a generic
stream.
Constructor Summary | |
---|---|
XmlDataContentHandler()
|
Method Summary | |
---|---|
java.lang.Object |
getContent(javax.activation.DataSource ds)
Returns a StreamSource from the specified
data source. |
java.lang.Object |
getTransferData(java.awt.datatransfer.DataFlavor df,
javax.activation.DataSource ds)
Returns a StreamSource from the specified
data source. |
java.awt.datatransfer.DataFlavor[] |
getTransferDataFlavors()
Returns the acceptable data flavors that this content handler supports. |
void |
writeTo(java.lang.Object obj,
java.lang.String mimeType,
java.io.OutputStream os)
Writes the passed in StreamSource object using the specified
mime type to the specified output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlDataContentHandler()
Method Detail |
---|
public java.lang.Object getContent(javax.activation.DataSource ds) throws java.io.IOException
StreamSource
from the specified
data source.
getContent
in interface javax.activation.DataContentHandler
ds
- the activation datasource
java.io.IOException
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor df, javax.activation.DataSource ds) throws java.awt.datatransfer.UnsupportedFlavorException, java.io.IOException
StreamSource
from the specified
data source. The flavor must be one of the ones returned by getTransferDataFlavors()
.
getTransferData
in interface javax.activation.DataContentHandler
df
- the flavor specifiying the mime type of dsds
- the activation data source
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException
public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface javax.activation.DataContentHandler
ActivationDataHandlers
public void writeTo(java.lang.Object obj, java.lang.String mimeType, java.io.OutputStream os) throws java.io.IOException
StreamSource
object using the specified
mime type to the specified output stream. The mime type must be text/xml.
writeTo
in interface javax.activation.DataContentHandler
obj
- an XML stream sourcemimeType
- the string "text/xml"os
- the output stream to write this xml stream to
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |