public final class XMLReader
extends java.lang.Object
XMLReader
is used for reading XML-files into ClassFile
s.
This class requires the XML-file to be formatted in the same way as produced by the class XMLWriter
.
Note: This API is a work in progress, which means it does not work as expected yet.
Constructor and Description |
---|
XMLReader()
Constructs a new
XMLReader instance. |
Modifier and Type | Method and Description |
---|---|
ClassFile |
readClassFile(java.io.File file)
Reads a
ClassFile from an XML-file pointed to by file . |
public ClassFile readClassFile(java.io.File file)
ClassFile
from an XML-file pointed to by file
.
Returns a ClassFile
instance.
If file
is null
, a NullPointerException
will be thrown.
If a problem occurs while trying to read the XML-file, an XMLReaderException
will be thrown.
file
- a File
pointing to an XML-fileClassFile
instancejava.lang.NullPointerException
- thrown if, and only if, file
is null
XMLReaderException
- thrown if, and only if, a problem occurred while trying to read the XML-file