Package org.apache.rat
Class ReportConfiguration.SerDes
java.lang.Object
org.apache.rat.ReportConfiguration.SerDes
- Enclosing class:
- ReportConfiguration
Serializes the ReportConfiguration into an XML document that can be deserialized by the Serde.
Deserialized ReportConfigurations can not be executed as the reportable objects use named placeholders
and do not have access to the original object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeserialize(org.apache.commons.io.function.IOSupplier<InputStream> inputStreamSupplier, DocumentName workingDirectory) Reads an input stream as an XML document and parses the report configuration from that.voidserialize(Appendable appendable) Writes the configuration as an XML document to the appendable.
-
Constructor Details
-
SerDes
public SerDes()
-
-
Method Details
-
serialize
Writes the configuration as an XML document to the appendable.- Parameters:
appendable- the Appendable to write to.- Throws:
IOException- on error.
-
deserialize
public void deserialize(org.apache.commons.io.function.IOSupplier<InputStream> inputStreamSupplier, DocumentName workingDirectory) throws IOException Reads an input stream as an XML document and parses the report configuration from that. Note: The reportable objects (Files) in a deserialized ReportConfigurations are not executable.- Parameters:
inputStreamSupplier- The XML document written byserialize(Appendable)workingDirectory- the directory to resolve short XSLT and output names from.- Throws:
IOException- on parse error.
-