Element
@Deprecated public final class ElementSerializer extends Object
Element
and converts it to an XML
string.
This class is not thread-safe. It should only be used on one thread at a time.
Constructor and Description |
---|
ElementSerializer()
Deprecated.
Constructs a new
ElementSerializer . |
public ElementSerializer()
ElementSerializer
.public String serialize(Element element) throws IllegalArgumentException
element
- the element to serialize, cannot be null
.element
, never
null
.IllegalArgumentException
- if element == null
.public void output(XMLOutputter out, Element element) throws NullPointerException, IOException
Element
.out
- the XMLOutputter
to use, cannot be null
.element
- the Element
object to convert to XML, cannot be
null
.NullPointerException
- if out == null || element == null
.IOException
- if there is an I/O error.See http://www.xins.org/.