org.springframework.oxm.support
Class MarshallingSource
java.lang.Object
javax.xml.transform.sax.SAXSource
org.springframework.oxm.support.MarshallingSource
- All Implemented Interfaces:
- Source
public class MarshallingSource
- extends SAXSource
Source implementation that uses a Marshaller.Can be constructed with a Marshaller and an
object to be marshalled.
Even though StaxSource extends from SAXSource, calling the methods of
SAXSource is not supported. In general, the only supported operation on this class is
to use the XMLReader obtained via SAXSource.getXMLReader() to parse the input source obtained via SAXSource.getInputSource(). Calling SAXSource.setXMLReader(org.xml.sax.XMLReader) or SAXSource.setInputSource(org.xml.sax.InputSource) will result in UnsupportedOperationExceptions.
- Since:
- 1.0.0
- Author:
- Arjen Poutsma
- See Also:
Transformer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MarshallingSource
public MarshallingSource(Marshaller marshaller,
Object content)
- Creates a new
MarshallingSource with the given marshaller and content.
- Parameters:
marshaller - the marshaller to usecontent - the object to be marshalled
getMarshaller
public Marshaller getMarshaller()
- Returns the
Marshaller used by this MarshallingSource.
getContent
public Object getContent()
- Returns the object to be marshalled.
Copyright © 2005-2010 The Spring Web Services Framework. All Rights Reserved.