public class BinderFactory extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BinderFactory.XmlReaderType |
| Constructor and Description |
|---|
BinderFactory() |
| Modifier and Type | Method and Description |
|---|---|
static BinderReader |
getJSONReader()
Get BinderReader instance with default format(encoding is utf-8), the BinderReader instance cna be used to read JSON into POJO.
|
static BinderReader |
getJSONReader(BinderOptions format)
Get BinderReader instance with specific format, the BinderReader instance can be used to read JSON into POJO.
|
static BinderWriter |
getJSONWriter()
Get BinderWriter instance with default format(encoding is utf-8), the BinderWriter instance can be used to write Java POJO into JSON.
|
static BinderWriter |
getJSONWriter(BinderOptions options)
Get BinderWriter instance with specific format, the BinderWriter instance can be used to write Java POJO into JSON.
|
static BinderReader |
getXMLReader()
Get BinderReader instance with default format(encoding is utf-8), the BinderReader instance can be used to read XML into Java POJO.
|
static BinderReader |
getXMLReader(BinderFactory.XmlReaderType type)
Get BinderReader instance with default format(encoding is utf-8), the BinderReader instance can be used to read XML into Java POJO.
|
static BinderReader |
getXMLReader(BinderFactory.XmlReaderType type,
BinderOptions format)
Get BinderReader instance with specific format, the BinderReader instance can be used to read XML into Java POJO.
|
static BinderWriter |
getXMLWriter()
Get BinderWriter instance with default format(encoding is utf-8, indent is true), the BinderWriter instance can be used to write Java POJO into XML.
|
static BinderWriter |
getXMLWriter(BinderOptions options)
Get BinderWriter instance with default specific format, the BinderWriter instance can be used to write Java POJO into XML.
|
public static BinderReader getXMLReader(BinderFactory.XmlReaderType type)
public static BinderReader getXMLReader()
public static BinderReader getXMLReader(BinderFactory.XmlReaderType type, BinderOptions format)
format - info about encoding and indentpublic static BinderReader getJSONReader()
public static BinderReader getJSONReader(BinderOptions format)
format - info about encodingpublic static BinderWriter getXMLWriter()
public static BinderWriter getXMLWriter(BinderOptions options)
options - info about encoding and indentpublic static BinderWriter getJSONWriter()
public static BinderWriter getJSONWriter(BinderOptions options)
Copyright © 2016. All rights reserved.