org.apache.uima.simpleserver.config.impl
Class XmlConfigReader
java.lang.Object
org.apache.uima.simpleserver.config.impl.XmlConfigReader
public final class XmlConfigReader
- extends java.lang.Object
Read server configuration from an XML file or stream.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlConfigReader
public XmlConfigReader()
readServerSpec
public static ServerSpec readServerSpec(java.io.File file)
throws java.io.IOException,
org.apache.xmlbeans.XmlException,
SimpleServerException
- Read a config file.
- Parameters:
file
- The config file.
- Returns:
- The corresponding server spec.
- Throws:
java.io.IOException
org.apache.xmlbeans.XmlException
- XML parsing error.
SimpleServerException
- Content parsing error.
readServerSpec
public static ServerSpec readServerSpec(java.io.InputStream is)
throws java.io.IOException,
org.apache.xmlbeans.XmlException,
SimpleServerException
- Read a config XML stream.
- Parameters:
is
- The XML input stream.
- Returns:
- The corresponding server spec.
- Throws:
java.io.IOException
org.apache.xmlbeans.XmlException
- XML parsing error.
SimpleServerException
- Content parsing error.
Copyright © 2011. All Rights Reserved.