public class BinderFactory extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BinderFactory.ReaderType |
| Modifier and Type | Field and Description |
|---|---|
static BinderFactory.ReaderType |
readerType
Reader type setting, current supports DOM(BinderDefault) and SAX.
|
| 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(Options 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(Options 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(Options 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(Options options)
Get BinderWriter instance with default specific format,
the BinderWriter instance can be used to write Java POJO into XML.
|
public static BinderFactory.ReaderType readerType
public static BinderReader getXMLReader()
public static BinderReader getXMLReader(Options format)
format - info about encoding and indentpublic static BinderReader getJSONReader()
public static BinderReader getJSONReader(Options format)
format - info about encodingpublic static BinderWriter getXMLWriter()
public static BinderWriter getXMLWriter(Options options)
options - info about encoding and indentpublic static BinderWriter getJSONWriter()
public static BinderWriter getJSONWriter(Options options)
Copyright © 2015. All rights reserved.