public interface Serializer
String
s into Node
s and visa versa.Modifier and Type | Method and Description |
---|---|
Node |
deserialize(byte[] source,
Node ctx) |
byte[] |
serializeToByteArray(Element element)
Returns a
byte[] representation of the specified
Element . |
byte[] |
serializeToByteArray(NodeList content)
Returns a
byte[] representation of the specified
NodeList . |
byte[] serializeToByteArray(Element element) throws Exception
byte[]
representation of the specified
Element
.element
- the Element
to serialize.byte[]
representation of the serialized
Element
.Exception
byte[] serializeToByteArray(NodeList content) throws Exception
byte[]
representation of the specified
NodeList
.content
- the NodeList
to serialize.byte[]
representation of the serialized
NodeList
.Exception
Node deserialize(byte[] source, Node ctx) throws XMLEncryptionException, IOException
source
- ctx
- XMLEncryptionException
IOException
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.