Interface Serializer
- All Known Implementing Classes:
AbstractSerializer
,DocumentSerializer
,TransformSerializer
public interface Serializer
Converts
String
s into Node
s 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
.void
setCanonicalizer
(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
- theElement
to serialize.- Returns:
- the
byte[]
representation of the serilaizedElement
. - Throws:
Exception
-
serializeToByteArray
Returns abyte[]
representation of the specifiedNodeList
.- Parameters:
content
- theNodeList
to 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:
XMLEncryptionException
IOException
-