@Service public class JaxbStringWriter extends AbstractJaxbWriter
jaxbContext, jaxbMarshaller, jaxbObject
Constructor and Description |
---|
JaxbStringWriter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getOutput() |
protected void |
marshal() |
void |
setOutput(java.io.StringWriter output) |
void |
write(java.lang.String notUsed,
java.lang.Object jaxbObject)
use JAXB writer to write out an instance to string.
|
marshall
public void write(java.lang.String notUsed, java.lang.Object jaxbObject)
notUsed
- - the name of out put filejaxbObject
- - the instance will be written into a fileprotected void marshal() throws javax.xml.bind.JAXBException
marshal
in class AbstractJaxbWriter
javax.xml.bind.JAXBException
public java.lang.String getOutput()
public void setOutput(java.io.StringWriter output)