-
- 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 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.
-
-
-
Method Detail
-
serializeToByteArray
byte[] serializeToByteArray(Element element) throws Exception
Returns abyte[]representation of the specifiedElement.- Parameters:
element- theElementto serialize.- Returns:
- the
byte[]representation of the serializedElement. - Throws:
Exception
-
serializeToByteArray
byte[] serializeToByteArray(NodeList content) throws Exception
Returns abyte[]representation of the specifiedNodeList.- Parameters:
content- theNodeListto serialize.- Returns:
- the
byte[]representation of the serializedNodeList. - Throws:
Exception
-
deserialize
Node deserialize(byte[] source, Node ctx) throws XMLEncryptionException, IOException
- Parameters:
source-ctx-- Returns:
- the Node resulting from the parse of the source
- Throws:
XMLEncryptionExceptionIOException
-
-