|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xins.common.xml.ElementSerializer
Serializer that takes an 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 Summary | |
ElementSerializer()
Constructs a new ElementSerializer . |
Method Summary | |
void |
output(XMLOutputter out,
Element element)
Generates XML for the specified Element . |
String |
serialize(Element element)
Serializes the element to XML. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ElementSerializer()
ElementSerializer
.
Method Detail |
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.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |