public final class XMLWriter
extends java.lang.Object
XMLWriter
is used for writing ClassFile
s to XML-files.
This class is useful for debugging purposes.
If you want to manually edit a ClassFile
instance, you can use the class XMLReader
to read the edited XML-file back into a ClassFile
instance.
Note: This API is a work in progress, which means it does not work as expected yet.
Constructor and Description |
---|
XMLWriter()
Constructs a new
XMLWriter instance. |
Modifier and Type | Method and Description |
---|---|
void |
writeClassFile(ClassFile classFile,
java.io.File file)
Writes an XML-file based on
classFile to the file represented by file . |
public void writeClassFile(ClassFile classFile, java.io.File file)
classFile
to the file represented by file
.
If either classFile
or file
are null
, a NullPointerException
will be thrown.
If a problem occurs while trying to write the XML-file, an XMLWriterException
will be thrown.
classFile
- the ClassFile
to writefile
- a File
denoting the file to write tojava.lang.NullPointerException
- thrown if, and only if, either classFile
or file
are null
XMLWriterException
- thrown if, and only if, a problem occurred while trying to write the XML-file