@Service public class JaxbFileWriter extends AbstractJaxbWriter
jaxbContext, jaxbMarshaller, jaxbObject
Constructor and Description |
---|
JaxbFileWriter() |
Modifier and Type | Method and Description |
---|---|
protected void |
marshal() |
void |
write(java.lang.String nameOfFile,
java.lang.Object jaxbObject)
use JAXB writer to write out an instance to a file.
|
marshall
public void write(java.lang.String nameOfFile, java.lang.Object jaxbObject)
nameOfFile
- - 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