public class FieldsMetadataXMLSerializer
extends java.lang.Object
FieldsMetadata from XML and serialize FieldsMetadata to XML.| Modifier | Constructor and Description |
|---|---|
protected |
FieldsMetadataXMLSerializer() |
| Modifier and Type | Method and Description |
|---|---|
static FieldsMetadataXMLSerializer |
getInstance() |
FieldsMetadata |
load(java.io.InputStream inputStream)
Load fields metadata in the given
FieldsMetadata from the given XML reader. |
FieldsMetadata |
load(java.io.Reader input)
Load fields metadata in the given
FieldsMetadata from the given XML reader. |
void |
save(FieldsMetadata fieldsMetadata,
java.io.OutputStream out,
boolean indent,
boolean formatAsJavaString)
Serialize as XML the given
FieldsMetadata to the given XML output stream. |
void |
save(FieldsMetadata fieldsMetadata,
java.io.Writer writer)
Serialize as XML the given
FieldsMetadata to the given XML writer. |
void |
save(FieldsMetadata fieldsMetadata,
java.io.Writer writer,
boolean indent)
Serialize as XML the given
FieldsMetadata to the given XML writer. |
void |
save(FieldsMetadata fieldsMetadata,
java.io.Writer writer,
boolean indent,
boolean formatAsJavaString)
Serialize as XML the given
FieldsMetadata to the given XML writer. |
public static FieldsMetadataXMLSerializer getInstance()
public FieldsMetadata load(java.io.Reader input) throws org.xml.sax.SAXException, java.io.IOException
FieldsMetadata from the given XML reader. Here a sample of XML reader :
inputStream - the reader of the XML fields.org.xml.sax.SAXExceptionjava.io.IOExceptionpublic FieldsMetadata load(java.io.InputStream inputStream) throws org.xml.sax.SAXException, java.io.IOException
FieldsMetadata from the given XML reader. Here a sample of XML reader :
inputStream - the input stream of the XML fields.org.xml.sax.SAXExceptionjava.io.IOExceptionpublic void save(FieldsMetadata fieldsMetadata, java.io.Writer writer) throws java.io.IOException
FieldsMetadata to the given XML writer. Here a sample of XML writer :
fieldsMetadata - the metadata to serialize to XML.writer - the writer.java.io.IOExceptionpublic void save(FieldsMetadata fieldsMetadata, java.io.Writer writer, boolean indent) throws java.io.IOException
FieldsMetadata to the given XML writer. Here a sample of XML writer :
fieldsMetadata - the metadata to serialize to XML.writer - the writer.indent - true if indent must be managed and false otherwise.java.io.IOExceptionpublic void save(FieldsMetadata fieldsMetadata, java.io.Writer writer, boolean indent, boolean formatAsJavaString) throws java.io.IOException
FieldsMetadata to the given XML writer. Here a sample of XML writer :
fieldsMetadata - the metadata to serialize to XML.writer - the writer.indent - true if indent must be managed and false otherwise.formatAsJavaString - true if format as Java String to be done and false otherwise.java.io.IOExceptionpublic void save(FieldsMetadata fieldsMetadata, java.io.OutputStream out, boolean indent, boolean formatAsJavaString) throws java.io.IOException
FieldsMetadata to the given XML output stream. Here a sample of XML writer :
fieldsMetadata - the metadata to serialize to XML.outputstream - the output steam.indent - true if indent must be managed and false otherwise.formatAsJavaString - true if format as Java String to be done and false otherwise. * @throws IOExceptionjava.io.IOExceptionCopyright © 2022. All Rights Reserved.