org.apache.xml.security.encryption
Class DocumentSerializer

java.lang.Object
  extended by org.apache.xml.security.encryption.AbstractSerializer
      extended by org.apache.xml.security.encryption.DocumentSerializer
All Implemented Interfaces:
Serializer

public class DocumentSerializer
extends AbstractSerializer

Converts Strings into Nodes and visa versa.


Field Summary
 
Fields inherited from class org.apache.xml.security.encryption.AbstractSerializer
canon, secureValidation
 
Constructor Summary
DocumentSerializer()
           
 
Method Summary
 Node deserialize(byte[] source, Node ctx)
           
 Node deserialize(String source, Node ctx)
           
 
Methods inherited from class org.apache.xml.security.encryption.AbstractSerializer
canonSerialize, canonSerializeToByteArray, createContext, createContext, isSecureValidation, serialize, serialize, serializeToByteArray, serializeToByteArray, setCanonicalizer, setSecureValidation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentSerializer

public DocumentSerializer()
Method Detail

deserialize

public Node deserialize(byte[] source,
                        Node ctx)
                 throws XMLEncryptionException
Specified by:
deserialize in interface Serializer
Specified by:
deserialize in class AbstractSerializer
Parameters:
source -
ctx -
Returns:
the Node resulting from the parse of the source
Throws:
XMLEncryptionException

deserialize

public Node deserialize(String source,
                        Node ctx)
                 throws XMLEncryptionException
Specified by:
deserialize in class AbstractSerializer
Parameters:
source -
ctx -
Returns:
the Node resulting from the parse of the source
Throws:
XMLEncryptionException


Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.