Interface Serializer
- All Known Implementing Classes:
AbstractSerializer,DocumentSerializer,TransformSerializer
public interface Serializer
Converts
Strings into Nodes and visa versa.-
Method Summary
Modifier and TypeMethodDescriptionbyte[]Use the Canonicalizer to serialize the nodedeserialize(byte[] source, Node ctx) byte[]serializeToByteArray(Element element) Returns abyte[]representation of the specifiedElement.byte[]serializeToByteArray(NodeList content) Returns abyte[]representation of the specifiedNodeList.voidsetCanonicalizer(Canonicalizer canon) Set the Canonicalizer object to use.
-
Method Details
-
setCanonicalizer
Set the Canonicalizer object to use. -
serializeToByteArray
Returns abyte[]representation of the specifiedElement.- Parameters:
element- theElementto serialize.- Returns:
- the
byte[]representation of the serilaizedElement. - Throws:
Exception
-
serializeToByteArray
Returns abyte[]representation of the specifiedNodeList.- Parameters:
content- theNodeListto serialize.- Returns:
- the
byte[]representation of the serializedNodeList. - Throws:
Exception
-
canonSerializeToByteArray
Use the Canonicalizer to serialize the node- Parameters:
node-- Returns:
- the (byte[]) canonicalization of the node
- Throws:
Exception
-
deserialize
- Parameters:
source-ctx-- Returns:
- the Node resulting from the parse of the source
- Throws:
XMLEncryptionExceptionIOException
-