stella.xml
Class DOMTarget.Deserialize
java.lang.Object
stella.xml.DOMTarget.Deserialize
- Enclosing class:
- DOMTarget
public static class DOMTarget.Deserialize
- extends Object
A class to test serialization. The command line argument is a serialized
parsed target, which is read in and converted into an XML-file, which is
then dumped tot system.out.
|
Field Summary |
private static File |
PROPFILE
The properties file of the scheduler. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROPFILE
private static final File PROPFILE
- The properties file of the scheduler. For testing.
DOMTarget.Deserialize
public DOMTarget.Deserialize()
main
public static void main(String[] arg)
throws IOException,
ClassNotFoundException
- Reads in the first command line argument, uses this xml-file to
construct a Document via
TargetFragment#createTargetDocument,
parses this into a ParsedTarget with
DOMTarget.parseTarget(java.lang.String, org.w3c.dom.Document, java.util.Map). This ParsedTarget is then
retransformed into a Document with DOMTarget.toDocument(stella.xml.ParsedTarget, java.util.Map), and
the resulting Document is finally stored as an xml-file using the
{DOMToXML#transform} method. The file name is deduced from the second
command line argument.
The properties of the target must be in a file named
PROPFILE.
- Throws:
IOException
ClassNotFoundException