public interface Serializer
Strings into Nodes and visa versa.| Modifier and Type | Method and Description |
|---|---|
byte[] |
canonSerializeToByteArray(Node node)
Use the Canonicalizer to serialize the node
|
Node |
deserialize(byte[] source,
Node ctx) |
byte[] |
serializeToByteArray(Element element)
Returns a
byte[] representation of the specified
Element. |
byte[] |
serializeToByteArray(NodeList content)
Returns a
byte[] representation of the specified
NodeList. |
void |
setCanonicalizer(Canonicalizer canon)
Set the Canonicalizer object to use.
|
void setCanonicalizer(Canonicalizer canon)
byte[] serializeToByteArray(Element element) throws Exception
byte[] representation of the specified
Element.element - the Element to serialize.byte[] representation of the serilaized
Element.Exceptionbyte[] serializeToByteArray(NodeList content) throws Exception
byte[] representation of the specified
NodeList.content - the NodeList to serialize.byte[] representation of the serialized
NodeList.Exceptionbyte[] canonSerializeToByteArray(Node node) throws Exception
node - ExceptionNode deserialize(byte[] source, Node ctx) throws XMLEncryptionException
source - ctx - XMLEncryptionExceptionCopyright © 2000–2015 The Apache Software Foundation. All rights reserved.