- All Known Implementing Classes:
AbstractSerializer,DocumentSerializer,TransformSerializer
public interface Serializer
Converts
Strings into Nodes and visa versa.-
Method Summary
Modifier and TypeMethodDescriptiondeserialize(byte[] source, Node ctx) byte[]serializeToByteArray(Element element) Returns abyte[]representation of the specifiedElement.byte[]serializeToByteArray(NodeList content) Returns abyte[]representation of the specifiedNodeList.
-
Method Details
-
serializeToByteArray
Returns abyte[]representation of the specifiedElement.- Parameters:
element- theElementto serialize.- Returns:
- the
byte[]representation of the serializedElement. - Throws:
Exception
-
serializeToByteArray
Returns abyte[]representation of the specifiedNodeList.- Parameters:
content- theNodeListto serialize.- Returns:
- the
byte[]representation of the serializedNodeList. - Throws:
Exception
-
deserialize
- Parameters:
source-ctx-- Returns:
- the Node resulting from the parse of the source
- Throws:
XMLEncryptionExceptionIOException
-