| java.lang.Object org.springframework.oxm.AbstractMarshaller org.springframework.oxm.xstream.XStreamMarshaller
Method Summary | |
public void | addAlias(String name, Class type) Adds an alias for the given type. | public XmlMappingException | convertXStreamException(Exception ex, boolean marshalling) Convert the given XStream exception to an appropriate exception from the org.springframework.oxm
hierarchy.
The default implementation delegates to XStreamUtils . | public String | getEncoding() Returns the encoding to be used for stream access. | protected void | marshalDomNode(Object graph, Node node) | protected void | marshalOutputStream(Object graph, OutputStream outputStream) | protected void | marshalSaxHandlers(Object graph, ContentHandler contentHandler, LexicalHandler lexicalHandler) | protected void | marshalWriter(Object graph, Writer writer) | protected void | marshalXmlEventWriter(Object graph, XMLEventWriter eventWriter) | protected void | marshalXmlStreamWriter(Object graph, XMLStreamWriter streamWriter) | public void | setAliases(Map aliases) Set a alias/type map, consisting of string aliases mapped to Class instances (or Strings to be
converted to Class instances). | public void | setConverters(ConverterMatcher[] converters) Sets the Converters or SingleValueConverters to be registered with the
XStream instance. | public void | setEncoding(String encoding) Sets the encoding to be used for stream access. | public void | setMode(int mode) Sets the XStream mode. | public boolean | supports(Class clazz) | protected Object | unmarshalDomNode(Node node) | protected Object | unmarshalInputStream(InputStream inputStream) | protected Object | unmarshalReader(Reader reader) | protected Object | unmarshalSaxReader(XMLReader xmlReader, InputSource inputSource) | protected Object | unmarshalXmlEventReader(XMLEventReader eventReader) | protected Object | unmarshalXmlStreamReader(XMLStreamReader streamReader) |
DEFAULT_ENCODING | final public static String DEFAULT_ENCODING(Code) | | The default encoding used for stream access.
|
addAlias | public void addAlias(String name, Class type)(Code) | | Adds an alias for the given type.
Parameters: name - alias to be used for the type Parameters: type - the type to be aliased |
convertXStreamException | public XmlMappingException convertXStreamException(Exception ex, boolean marshalling)(Code) | | Convert the given XStream exception to an appropriate exception from the org.springframework.oxm
hierarchy.
The default implementation delegates to XStreamUtils . Can be overridden in subclasses.
Parameters: ex - exception that occured Parameters: marshalling - indicates whether the exception occurs during marshalling (true ), orunmarshalling (false ) the corresponding XmlMappingException instance See Also: XStreamUtils.convertXStreamException(Exceptionboolean) |
setAliases | public void setAliases(Map aliases)(Code) | | Set a alias/type map, consisting of string aliases mapped to Class instances (or Strings to be
converted to Class instances).
See Also: org.springframework.beans.propertyeditors.ClassEditor |
setConverters | public void setConverters(ConverterMatcher[] converters)(Code) | | Sets the Converters or SingleValueConverters to be registered with the
XStream instance.
See Also: Converter See Also: SingleValueConverter |
setMode | public void setMode(int mode)(Code) | | Sets the XStream mode.
See Also: XStream.XPATH_REFERENCES See Also: XStream.ID_REFERENCES See Also: XStream.NO_REFERENCES |
Fields inherited from org.springframework.oxm.AbstractMarshaller | final protected Log logger(Code)(Java Doc)
|
Methods inherited from org.springframework.oxm.AbstractMarshaller | protected DocumentBuilder createDocumentBuilder(DocumentBuilderFactory factory) throws ParserConfigurationException(Code)(Java Doc) protected DocumentBuilderFactory createDocumentBuilderFactory() throws ParserConfigurationException(Code)(Java Doc) protected XMLReader createXmlReader() throws SAXException(Code)(Java Doc) final public void marshal(Object graph, Result result) throws XmlMappingException, IOException(Code)(Java Doc) abstract protected void marshalDomNode(Object graph, Node node) throws XmlMappingException(Code)(Java Doc) protected void marshalDomResult(Object graph, DOMResult domResult) throws XmlMappingException(Code)(Java Doc) abstract protected void marshalOutputStream(Object graph, OutputStream outputStream) throws XmlMappingException, IOException(Code)(Java Doc) abstract protected void marshalSaxHandlers(Object graph, ContentHandler contentHandler, LexicalHandler lexicalHandler) throws XmlMappingException(Code)(Java Doc) protected void marshalSaxResult(Object graph, SAXResult saxResult) throws XmlMappingException(Code)(Java Doc) protected void marshalStaxResult(Object graph, StaxResult staxResult) throws XmlMappingException(Code)(Java Doc) protected void marshalStreamResult(Object graph, StreamResult streamResult) throws XmlMappingException, IOException(Code)(Java Doc) abstract protected void marshalWriter(Object graph, Writer writer) throws XmlMappingException, IOException(Code)(Java Doc) abstract protected void marshalXmlEventWriter(Object graph, XMLEventWriter eventWriter) throws XmlMappingException(Code)(Java Doc) abstract protected void marshalXmlStreamWriter(Object graph, XMLStreamWriter streamWriter) throws XmlMappingException(Code)(Java Doc) final public Object unmarshal(Source source) throws XmlMappingException, IOException(Code)(Java Doc) abstract protected Object unmarshalDomNode(Node node) throws XmlMappingException(Code)(Java Doc) protected Object unmarshalDomSource(DOMSource domSource) throws XmlMappingException(Code)(Java Doc) abstract protected Object unmarshalInputStream(InputStream inputStream) throws XmlMappingException, IOException(Code)(Java Doc) abstract protected Object unmarshalReader(Reader reader) throws XmlMappingException, IOException(Code)(Java Doc) abstract protected Object unmarshalSaxReader(XMLReader xmlReader, InputSource inputSource) throws XmlMappingException, IOException(Code)(Java Doc) protected Object unmarshalSaxSource(SAXSource saxSource) throws XmlMappingException, IOException(Code)(Java Doc) protected Object unmarshalStaxSource(StaxSource staxSource) throws XmlMappingException(Code)(Java Doc) protected Object unmarshalStreamSource(StreamSource streamSource) throws XmlMappingException, IOException(Code)(Java Doc) abstract protected Object unmarshalXmlEventReader(XMLEventReader eventReader) throws XmlMappingException(Code)(Java Doc) abstract protected Object unmarshalXmlStreamReader(XMLStreamReader streamReader) throws XmlMappingException(Code)(Java Doc)
|
|
|