public class ProvSerialiser extends Object implements ProvSerialiser
Modifier and Type | Field and Description |
---|---|
protected JAXBContext |
jc |
Constructor and Description |
---|
ProvSerialiser() |
ProvSerialiser(String packageList) |
Modifier and Type | Method and Description |
---|---|
void |
configurePrefixes(Marshaller m) |
void |
configurePrefixes(Marshaller m,
Namespace namespaces) |
Document |
defaultEmptyDocument()
By default we use a document provided by the DocumentBuilder
factory.
|
static ProvSerialiser |
getThreadProvSerialiser() |
Document |
serialiseDocument(Document request) |
void |
serialiseDocument(File file,
Document graph,
boolean format) |
Node |
serialiseDocument(Node addTo,
Document graph) |
void |
serialiseDocument(OutputStream out,
Document graph,
boolean format)
Serializes a document to a stream
|
String |
serialiseDocument(StringWriter sw,
Document graph) |
String |
serialiseDocument(StringWriter sw,
Document graph,
boolean format) |
protected JAXBContext jc
public ProvSerialiser() throws JAXBException
JAXBException
public ProvSerialiser(String packageList) throws JAXBException
JAXBException
public static ProvSerialiser getThreadProvSerialiser()
public void configurePrefixes(Marshaller m) throws PropertyException
PropertyException
public void configurePrefixes(Marshaller m, Namespace namespaces) throws PropertyException
PropertyException
public Document defaultEmptyDocument()
public Document serialiseDocument(Document request) throws JAXBException
JAXBException
public Node serialiseDocument(Node addTo, Document graph) throws JAXBException
JAXBException
public String serialiseDocument(StringWriter sw, Document graph) throws JAXBException
JAXBException
public String serialiseDocument(StringWriter sw, Document graph, boolean format) throws JAXBException
JAXBException
public void serialiseDocument(OutputStream out, Document graph, boolean format) throws JAXBException
ProvSerialiser
serialiseDocument
in interface ProvSerialiser
out
- an OutputStream
graph
- a Document
format
- a boolean indicating whether the output should be pretty-printedJAXBException
public void serialiseDocument(File file, Document graph, boolean format) throws JAXBException
JAXBException
Copyright © 2016. All rights reserved.