public final class XmlConfigReader extends Object
Constructor and Description |
---|
XmlConfigReader() |
Modifier and Type | Method and Description |
---|---|
static ServerSpec |
readServerSpec(File file)
Read a config file.
|
static ServerSpec |
readServerSpec(InputStream is)
Read a config XML stream.
|
public static ServerSpec readServerSpec(File file) throws IOException, org.apache.xmlbeans.XmlException, SimpleServerException
file
- The config file.IOException
org.apache.xmlbeans.XmlException
- XML parsing error.SimpleServerException
- Content parsing error.public static ServerSpec readServerSpec(InputStream is) throws IOException, org.apache.xmlbeans.XmlException, SimpleServerException
is
- The XML input stream.IOException
org.apache.xmlbeans.XmlException
- XML parsing error.SimpleServerException
- Content parsing error.Copyright © 2015. All rights reserved.