コード例 #1
0
 /**
  * Create a configuration from an Reader.
  *
  * <p>Code canibalized from <code>Configuration.loadResource()</code>.
  *
  * @param reader reader to read the configuration from.
  * @throws IOException thrown if the configuration could not be read.
  */
 public XConfiguration(Reader reader) throws IOException {
   this();
   parse(reader);
 }
コード例 #2
0
 /**
  * Create a configuration from an InputStream.
  *
  * <p>Code canibalized from <code>Configuration.loadResource()</code>.
  *
  * @param is inputstream to read the configuration from.
  * @throws IOException thrown if the configuration could not be read.
  */
 public XConfiguration(InputStream is) throws IOException {
   this();
   parse(is);
 }