org.apache.xml.security.encryption
Interface Serializer

All Known Implementing Classes:
AbstractSerializer, DocumentSerializer, TransformSerializer

public interface Serializer

Converts Strings into Nodes and visa versa.


Method Summary
 String canonSerialize(Node node)
          Use the Canonicalizer to serialize the node
 Node deserialize(String source, Node ctx)
           
 String serialize(Element element)
          Returns a String representation of the specified Element.
 String serialize(NodeList content)
          Returns a String representation of the specified NodeList.
 void setCanonicalizer(Canonicalizer canon)
          Set the Canonicalizer object to use.
 

Method Detail

setCanonicalizer

void setCanonicalizer(Canonicalizer canon)
Set the Canonicalizer object to use.


serialize

String serialize(Element element)
                 throws Exception
Returns a String representation of the specified Element.

Parameters:
element - the Element to serialize.
Returns:
the String representation of the serilaized Element.
Throws:
Exception

serialize

String serialize(NodeList content)
                 throws Exception
Returns a String representation of the specified NodeList.

Parameters:
content - the NodeList to serialize.
Returns:
the String representation of the serialized NodeList.
Throws:
Exception

canonSerialize

String canonSerialize(Node node)
                      throws Exception
Use the Canonicalizer to serialize the node

Parameters:
node -
Returns:
the canonicalization of the node
Throws:
Exception

deserialize

Node deserialize(String source,
                 Node ctx)
                 throws XMLEncryptionException
Parameters:
source -
ctx -
Returns:
the Node resulting from the parse of the source
Throws:
XMLEncryptionException


Copyright © 2000-2012 The Apache Software Foundation. All Rights Reserved.