public class JobDefinitionSerializer
extends java.lang.Object
Constructor and Description |
---|
JobDefinitionSerializer() |
Modifier and Type | Method and Description |
---|---|
static org.dom4j.Document |
serialize(IDispatchedScript dispatchdef)
Serialize a script dispatch into jobs.xml format
|
static void |
serializeToFile(IDispatchedScript script,
java.io.File file)
Convert the input script context to a Jobs.xml document and serialize it to the given file.
|
public static org.dom4j.Document serialize(IDispatchedScript dispatchdef) throws java.io.IOException
dispatchdef
- the script dispatch descriptorjava.io.IOException
- if the input IDispatchedScript throws it when accessing script stream input.public static void serializeToFile(IDispatchedScript script, java.io.File file) throws java.io.IOException
script
- the input dispatch scriptfile
- destination filejava.io.IOException
- if an error occurs