public class XmlSerializer
extends java.lang.Object
Constructor and Description |
---|
XmlSerializer(java.lang.String filename)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
writeObject(java.lang.Object obj)
This method writes an object to the xml file.
|
public XmlSerializer(java.lang.String filename) throws java.io.FileNotFoundException
filename
- the xml file that serves as outputjava.io.FileNotFoundException
- if something goes wrong with the filepublic void writeObject(java.lang.Object obj) throws XmlMarshallException
obj
- any Object instanceXmlMarshallException