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