Interface Serializer
-
- All Known Implementing Classes:
AbstractSerializer,DocumentSerializer,TransformSerializer
public interface SerializerConvertsStrings intoNodes and visa versa.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]canonSerializeToByteArray(org.w3c.dom.Node node)Use the Canonicalizer to serialize the nodeorg.w3c.dom.Nodedeserialize(byte[] source, org.w3c.dom.Node ctx)byte[]serializeToByteArray(org.w3c.dom.Element element)Returns abyte[]representation of the specifiedElement.byte[]serializeToByteArray(org.w3c.dom.NodeList content)Returns abyte[]representation of the specifiedNodeList.voidsetCanonicalizer(Canonicalizer canon)Set the Canonicalizer object to use.
-
-
-
Method Detail
-
setCanonicalizer
void setCanonicalizer(Canonicalizer canon)
Set the Canonicalizer object to use.
-
serializeToByteArray
byte[] serializeToByteArray(org.w3c.dom.Element element) throws java.lang.ExceptionReturns abyte[]representation of the specifiedElement.- Parameters:
element- theElementto serialize.- Returns:
- the
byte[]representation of the serilaizedElement. - Throws:
java.lang.Exception
-
serializeToByteArray
byte[] serializeToByteArray(org.w3c.dom.NodeList content) throws java.lang.ExceptionReturns abyte[]representation of the specifiedNodeList.- Parameters:
content- theNodeListto serialize.- Returns:
- the
byte[]representation of the serializedNodeList. - Throws:
java.lang.Exception
-
canonSerializeToByteArray
byte[] canonSerializeToByteArray(org.w3c.dom.Node node) throws java.lang.ExceptionUse the Canonicalizer to serialize the node- Parameters:
node-- Returns:
- the (byte[]) canonicalization of the node
- Throws:
java.lang.Exception
-
deserialize
org.w3c.dom.Node deserialize(byte[] source, org.w3c.dom.Node ctx) throws XMLEncryptionException, java.io.IOException- Parameters:
source-ctx-- Returns:
- the Node resulting from the parse of the source
- Throws:
XMLEncryptionExceptionjava.io.IOException
-
-