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,
Namespace namespaces) |
Document |
defaultEmptyDocument()
By default we use a document provided by the DocumentBuilder
factory.
|
static ProvSerialiser |
getThreadProvSerialiser() |
void |
prepareNamespaces(Marshaller m,
Document document) |
Document |
serialiseDocument(Document request) |
void |
serialiseDocument(File file,
Document document,
boolean format) |
Node |
serialiseDocument(Node addTo,
Document document) |
void |
serialiseDocument(OutputStream out,
Document document,
boolean format)
Serializes a document to a stream
|
String |
serialiseDocument(StringWriter sw,
Document document,
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, Namespace namespaces) throws PropertyException
PropertyException
public Document defaultEmptyDocument()
public Document serialiseDocument(Document request) throws JAXBException
JAXBException
public Node serialiseDocument(Node addTo, Document document) throws JAXBException
JAXBException
public void prepareNamespaces(Marshaller m, Document document) throws PropertyException
PropertyException
public String serialiseDocument(StringWriter sw, Document document, boolean format) throws JAXBException
JAXBException
public void serialiseDocument(OutputStream out, Document document, boolean format) throws JAXBException
ProvSerialiser
serialiseDocument
in interface ProvSerialiser
out
- an OutputStream
document
- a Document
format
- a boolean indicating whether the output should be pretty-printedJAXBException
public void serialiseDocument(File file, Document document, boolean format) throws JAXBException
JAXBException
Copyright © 2016. All rights reserved.