public class Serializer extends Object
ContentDeliveryConfig and the
SerializationUnit instances defined there on
to perform the serialization.| Constructor and Description |
|---|
Serializer(Node node,
ExecutionContext executionContext)
Public constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
recursiveDOMWrite(Element element,
Writer writer)
Recursively write the DOM tree to the supplied writer.
|
void |
serailize(Writer writer)
Serialise the document to the supplied output writer instance.
|
public Serializer(Node node, ExecutionContext executionContext)
node - Node to be serialized.executionContext - Target device context.public void serailize(Writer writer) throws ResourceConfigurationNotFoundException, IOException
writer - Output writer.ResourceConfigurationNotFoundException - DOM Serialiser exception.IOException - Unable to write to output writer.public static void recursiveDOMWrite(Element element, Writer writer) throws IOException
element - Element to write.writer - Writer to use.IOException - Exception writing to Writer.Copyright © 2015. All rights reserved.