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 BinderJsonReader |
getJsonReader()
Get BinderReader instance with default format(encoding is utf-8), the BinderReader instance cna be used to read JSON into POJO.
|
static BinderJsonReader |
getJsonReader(BinderOptions format)
Get BinderReader instance with specific format, the BinderReader instance can be used to read JSON into POJO.
|
static BinderJsonWriter |
getJsonWriter()
Get BinderWriter instance with default format(encoding is utf-8), the BinderWriter instance can be used to write Java POJO into JSON.
|
static BinderJsonWriter |
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 BinderJsonReader getJsonReader()
public static BinderJsonReader getJsonReader(BinderOptions format)
format - info about encodingpublic static BinderWriter getXmlWriter()
public static BinderWriter getXmlWriter(BinderOptions options)
options - info about encoding and indentpublic static BinderJsonWriter getJsonWriter()
public static BinderJsonWriter getJsonWriter(BinderOptions options)
Copyright © 2016. All rights reserved.