public class OvalFileAggregator
extends java.lang.Object
| Constructor and Description |
|---|
OvalFileAggregator()
No-arg constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.jdom.Document doc)
Adds a parsed OVAL file to the aggregate
|
void |
add(java.io.File f)
Adds a OVAL file to the aggregate
|
java.lang.String |
finish(boolean prettyPrint)
Finalizes processing and builds the aggregated document
|
public OvalFileAggregator()
throws org.jdom.JDOMException
org.jdom.JDOMException - if XML document initialization failspublic void add(java.io.File f)
throws org.jdom.JDOMException,
java.io.IOException
f - file to addorg.jdom.JDOMException - XML parsing failedjava.io.IOException - file IO failedpublic void add(org.jdom.Document doc)
throws org.jdom.JDOMException
doc - parsed OVAL fileorg.jdom.JDOMException - XMl parsing failedpublic java.lang.String finish(boolean prettyPrint)
throws java.io.IOException
prettyPrint - pretty print XML or notjava.io.IOException - document output failed