@Test public void testRead() throws IOException { Formatter errlog = new Formatter(); ByteArrayInputStream stringIS = new ByteArrayInputStream(config.getBytes()); RuntimeConfigParser.read(stringIS, errlog); System.out.printf("%s%n", errlog); }
public static void read(InputStream is, Formatter errlog) throws IOException { Document doc; SAXBuilder saxBuilder = new SAXBuilder(); try { doc = saxBuilder.build(is); } catch (JDOMException e) { throw new IOException(e.getMessage()); } read(doc.getRootElement(), errlog); }
RuntimeConfigParser { public static void read(InputStream is, Formatter errlog) throws IOException { Document doc; SAXBuilder saxBuilder = new SAXBuilder(); try { doc = saxBuilder.build(is); } catch (JDOMException e) { throw new IOException(e.getMessage()); } read(doc.getRootElement(), errlog); } }
RuntimeConfigParser { public static void read(InputStream is, Formatter errlog) throws IOException { Document doc; SAXBuilder saxBuilder = new SAXBuilder(); try { doc = saxBuilder.build(is); } catch (JDOMException e) { throw new IOException(e.getMessage()); } read(doc.getRootElement(), errlog); }  }
RuntimeConfigParser { public static void read(InputStream is, Formatter errlog) throws IOException { Document doc; SAXBuilder saxBuilder = new SAXBuilder(); try { doc = saxBuilder.build(is); } catch (JDOMException e) { throw new IOException(e.getMessage()); } read(doc.getRootElement(), errlog); }  static void read(InputStream is, Formatter errlog); static void read(org.jdom2.Element root, Formatter errlog); }
RuntimeConfigParser { public static void read(InputStream is, Formatter errlog) throws IOException { Document doc; SAXBuilder saxBuilder = new SAXBuilder(); try { doc = saxBuilder.build(is); } catch (JDOMException e) { throw new IOException(e.getMessage()); } read(doc.getRootElement(), errlog); }  static void read(InputStream is, Formatter errlog); static void read(org.jdom2.Element root, Formatter errlog);  }