|
AeroGear SimplePush Server Netty 0.11.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.aerogear.simplepush.server.netty.standalone.ConfigReader
public class ConfigReader
Utility to read a JSON config files.
| Method Summary | |
|---|---|
static StandaloneConfig |
parse(InputStream in)
Will parse the passed InputStream into a StandaloneConfig instance. |
static StandaloneConfig |
parse(String fileName)
Will parse the passed in file, which can either be a file on the file system or a file on the classpath into a StandaloneConfig instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static StandaloneConfig parse(String fileName)
throws Exception
StandaloneConfig instance.
fileName - the name of a file on the file system or on the classpath.
StandaloneConfig populated with the values in the JSON configuration file.
Exceptionpublic static StandaloneConfig parse(InputStream in)
StandaloneConfig instance.
in - the input stream to parse. Should be from a JSON source representing a SimplePush configuration.
StandaloneConfig populated with the values in the JSON input stream.
|
AeroGear SimplePush Server Netty 0.11.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||