public class AggregationWriter extends Object
Constructor and Description |
---|
AggregationWriter() |
Modifier and Type | Method and Description |
---|---|
static InputStream |
getAggregationStream(List<URI> aggregationURIs) |
static void |
saveAggregationTree(Aggregation root,
boolean asRevision,
List<URI> knownParents,
IProgressMonitor monitor)
Recursively saves the aggregations starting at the given tree.
|
static void |
writeAggregation(List<URI> uris,
OutputStream output)
Creates an aggregation document from the given list of URIs.
|
public static final String RDF_NS
public static void saveAggregationTree(Aggregation root, boolean asRevision, List<URI> knownParents, IProgressMonitor monitor) throws CoreException, XMLStreamException
root
- The aggregation at which to start saving.asRevision
- if true, save as new revisionknownParents
- a list of known ancestors of the given root, or null
to ask TG-searchmonitor
- progress monitorCoreException
- when TGO handling failsXMLStreamException
public static InputStream getAggregationStream(List<URI> aggregationURIs) throws XMLStreamException
XMLStreamException
public static void writeAggregation(List<URI> uris, OutputStream output) throws XMLStreamException
uris
- A list of TextGrid URIsoutput
- The stream to write toXMLStreamException
- when something goes wrong writing the output