public class ConfigSupport extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ConfigSupport.ClassMixIn |
static class |
ConfigSupport.ConfigMixIn |
static class |
ConfigSupport.MasterSlaveServersConfigMixIn |
static class |
ConfigSupport.SingleSeverConfigMixIn |
Constructor and Description |
---|
ConfigSupport() |
Modifier and Type | Method and Description |
---|---|
Config |
fromJSON(File file) |
Config |
fromJSON(InputStream inputStream) |
Config |
fromJSON(Reader reader) |
Config |
fromJSON(String content) |
Config |
fromJSON(URL url) |
Config |
fromYAML(File file) |
Config |
fromYAML(InputStream inputStream) |
Config |
fromYAML(Reader reader) |
Config |
fromYAML(String content) |
Config |
fromYAML(URL url) |
String |
toJSON(Config config) |
String |
toYAML(Config config) |
public Config fromJSON(String content) throws IOException
IOException
public Config fromJSON(File file) throws IOException
IOException
public Config fromJSON(URL url) throws IOException
IOException
public Config fromJSON(Reader reader) throws IOException
IOException
public Config fromJSON(InputStream inputStream) throws IOException
IOException
public String toJSON(Config config) throws IOException
IOException
public Config fromYAML(String content) throws IOException
IOException
public Config fromYAML(File file) throws IOException
IOException
public Config fromYAML(URL url) throws IOException
IOException
public Config fromYAML(Reader reader) throws IOException
IOException
public Config fromYAML(InputStream inputStream) throws IOException
IOException
public String toYAML(Config config) throws IOException
IOException
Copyright © 2014–2016. All rights reserved.