public class JuffrouMarshaller
extends org.springframework.oxm.support.AbstractMarshaller
implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ENCODING |
protected org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
JuffrouMarshaller() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
JuffrouXml |
getJuffrouXml() |
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) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setJuffrouXml(JuffrouXml juffrouXml) |
void |
setMappingLocation(org.springframework.core.io.Resource mappingLocation)
Set the locations of the Juffrou XML Mapping files.
|
void |
setMappingLocations(org.springframework.core.io.Resource[] mappingLocations)
Set the locations of the Juffrou XML Mapping files.
|
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) |
createDocumentBuilder, createDocumentBuilderFactory, createXmlReader, marshal, marshalDomResult, marshalSaxResult, marshalStaxResult, marshalStreamResult, unmarshal, unmarshalDomSource, unmarshalSaxSource, unmarshalStaxSource, unmarshalStreamSource
public static final String DEFAULT_ENCODING
protected final org.apache.commons.logging.Log logger
public void setMappingLocation(org.springframework.core.io.Resource mappingLocation)
public void setMappingLocations(org.springframework.core.io.Resource[] mappingLocations)
public JuffrouXml getJuffrouXml()
public void setJuffrouXml(JuffrouXml juffrouXml)
public boolean supports(Class<?> clazz)
supports
in interface org.springframework.oxm.Marshaller
supports
in interface org.springframework.oxm.Unmarshaller
protected void marshalDomNode(Object graph, Node node) throws org.springframework.oxm.XmlMappingException
marshalDomNode
in class org.springframework.oxm.support.AbstractMarshaller
org.springframework.oxm.XmlMappingException
protected void marshalXmlEventWriter(Object graph, XMLEventWriter eventWriter) throws org.springframework.oxm.XmlMappingException
marshalXmlEventWriter
in class org.springframework.oxm.support.AbstractMarshaller
org.springframework.oxm.XmlMappingException
protected void marshalXmlStreamWriter(Object graph, XMLStreamWriter streamWriter) throws org.springframework.oxm.XmlMappingException
marshalXmlStreamWriter
in class org.springframework.oxm.support.AbstractMarshaller
org.springframework.oxm.XmlMappingException
protected void marshalOutputStream(Object graph, OutputStream outputStream) throws org.springframework.oxm.XmlMappingException, IOException
marshalOutputStream
in class org.springframework.oxm.support.AbstractMarshaller
org.springframework.oxm.XmlMappingException
IOException
protected void marshalSaxHandlers(Object graph, ContentHandler contentHandler, LexicalHandler lexicalHandler) throws org.springframework.oxm.XmlMappingException
marshalSaxHandlers
in class org.springframework.oxm.support.AbstractMarshaller
org.springframework.oxm.XmlMappingException
protected void marshalWriter(Object graph, Writer writer) throws org.springframework.oxm.XmlMappingException, IOException
marshalWriter
in class org.springframework.oxm.support.AbstractMarshaller
org.springframework.oxm.XmlMappingException
IOException
protected Object unmarshalDomNode(Node node) throws org.springframework.oxm.XmlMappingException
unmarshalDomNode
in class org.springframework.oxm.support.AbstractMarshaller
org.springframework.oxm.XmlMappingException
protected Object unmarshalXmlEventReader(XMLEventReader eventReader) throws org.springframework.oxm.XmlMappingException
unmarshalXmlEventReader
in class org.springframework.oxm.support.AbstractMarshaller
org.springframework.oxm.XmlMappingException
protected Object unmarshalXmlStreamReader(XMLStreamReader streamReader) throws org.springframework.oxm.XmlMappingException
unmarshalXmlStreamReader
in class org.springframework.oxm.support.AbstractMarshaller
org.springframework.oxm.XmlMappingException
protected Object unmarshalInputStream(InputStream inputStream) throws org.springframework.oxm.XmlMappingException, IOException
unmarshalInputStream
in class org.springframework.oxm.support.AbstractMarshaller
org.springframework.oxm.XmlMappingException
IOException
protected Object unmarshalReader(Reader reader) throws org.springframework.oxm.XmlMappingException, IOException
unmarshalReader
in class org.springframework.oxm.support.AbstractMarshaller
org.springframework.oxm.XmlMappingException
IOException
protected Object unmarshalSaxReader(XMLReader xmlReader, InputSource inputSource) throws org.springframework.oxm.XmlMappingException, IOException
unmarshalSaxReader
in class org.springframework.oxm.support.AbstractMarshaller
org.springframework.oxm.XmlMappingException
IOException
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
Copyright © 2011–2020 Juffrou. All rights reserved.