Class TransformSerializer

  • All Implemented Interfaces:
    Serializer

    public class TransformSerializer
    extends AbstractSerializer
    Converts Strings into Nodes and visa versa. This requires Xalan to work properly.
    • Field Detail

      • transformerFactory

        private final javax.xml.transform.TransformerFactory transformerFactory
    • Method Detail

      • deserialize

        public 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:
        XMLEncryptionException
        java.io.IOException
      • deserialize

        private org.w3c.dom.Node deserialize​(org.w3c.dom.Node ctx,
                                             javax.xml.transform.Source source)
                                      throws XMLEncryptionException
        Parameters:
        ctx -
        source -
        Returns:
        the Node resulting from the parse of the source
        Throws:
        XMLEncryptionException