public class Xml extends CharMarshall
XmlSerializer
and XmlParser
into a single class with convenience read/write methods.
The general idea is to combine a single serializer and parser inside a simplified API for reading and writing POJOs.
Modifier and Type | Field and Description |
---|---|
static Xml |
DEFAULT
Default reusable instance.
|
Constructor and Description |
---|
Xml()
Constructor.
|
Xml(XmlSerializer s,
XmlParser p)
Constructor.
|
public Xml(XmlSerializer s, XmlParser p)
s
- The serializer to use for serializing output.
p
- The parser to use for parsing input.
public Xml()
Uses XmlSerializer.DEFAULT
and XmlParser.DEFAULT
.
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.