org.apache.axiom.util.jaxb
Class UnmarshallerAdapter

java.lang.Object
  extended by org.apache.axiom.util.jaxb.UnmarshallerAdapter

public class UnmarshallerAdapter
extends Object

Adapter that enables an Unmarshaller to perform XOP/MTOM processing on an XMLStreamReader that exposes the DataHandlerReader extension.

See Also:
JAXBUtils.getUnmarshallerAdapter(XMLStreamReader)

Method Summary
 javax.xml.bind.attachment.AttachmentUnmarshaller getAttachmentUnmarshaller()
          Get the AttachmentUnmarshaller to be configured on the Unmarshaller.
 XMLStreamReader getReader()
          Get the XMLStreamReader to be passed to the Unmarshaller.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getReader

public XMLStreamReader getReader()
Get the XMLStreamReader to be passed to the Unmarshaller.

Returns:
the reader

getAttachmentUnmarshaller

public javax.xml.bind.attachment.AttachmentUnmarshaller getAttachmentUnmarshaller()
Get the AttachmentUnmarshaller to be configured on the Unmarshaller.

Returns:
the AttachmentUnmarshaller instance; this may be null if the underlying XMLStreamReader doesn't expose the DataHandlerReader extension


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.