@Test public void testBasic() throws Exception { SLDParser parser = new SLDParser(styleFactory, input(SLD)); Style[] styles = parser.readXML(); assertStyles(styles); }
public Style[] readXML() { javax.xml.parsers.DocumentBuilderFactory dbf = javax.xml.parsers.DocumentBuilderFactory .newInstance(); dbf.setNamespaceAware(true); try { javax.xml.parsers.DocumentBuilder db = dbf.newDocumentBuilder(); dom = db.parse(source); } catch (javax.xml.parsers.ParserConfigurationException pce) { throw new RuntimeException(pce); } catch (org.xml.sax.SAXException se) { throw new RuntimeException(se); } catch (java.io.IOException ie) { throw new RuntimeException(ie); } return readDOM(dom); }
SLDParser { public Style[] readXML() { javax.xml.parsers.DocumentBuilderFactory dbf = javax.xml.parsers.DocumentBuilderFactory .newInstance(); dbf.setNamespaceAware(true); try { javax.xml.parsers.DocumentBuilder db = dbf.newDocumentBuilder(); dom = db.parse(source); } catch (javax.xml.parsers.ParserConfigurationException pce) { throw new RuntimeException(pce); } catch (org.xml.sax.SAXException se) { throw new RuntimeException(se); } catch (java.io.IOException ie) { throw new RuntimeException(ie); } return readDOM(dom); } }
SLDParser { public Style[] readXML() { javax.xml.parsers.DocumentBuilderFactory dbf = javax.xml.parsers.DocumentBuilderFactory .newInstance(); dbf.setNamespaceAware(true); try { javax.xml.parsers.DocumentBuilder db = dbf.newDocumentBuilder(); dom = db.parse(source); } catch (javax.xml.parsers.ParserConfigurationException pce) { throw new RuntimeException(pce); } catch (org.xml.sax.SAXException se) { throw new RuntimeException(se); } catch (java.io.IOException ie) { throw new RuntimeException(ie); } return readDOM(dom); } SLDParser(StyleFactory factory);  SLDParser(StyleFactory factory, FilterFactory filterFactory);  SLDParser(StyleFactory factory, String filename);  SLDParser(StyleFactory factory, File f);  SLDParser(StyleFactory factory, java.net.URL url);  SLDParser(StyleFactory factory, java.io.InputStream s);  SLDParser(StyleFactory factory, java.io.Reader r); }
SLDParser { public Style[] readXML() { javax.xml.parsers.DocumentBuilderFactory dbf = javax.xml.parsers.DocumentBuilderFactory .newInstance(); dbf.setNamespaceAware(true); try { javax.xml.parsers.DocumentBuilder db = dbf.newDocumentBuilder(); dom = db.parse(source); } catch (javax.xml.parsers.ParserConfigurationException pce) { throw new RuntimeException(pce); } catch (org.xml.sax.SAXException se) { throw new RuntimeException(se); } catch (java.io.IOException ie) { throw new RuntimeException(ie); } return readDOM(dom); } SLDParser(StyleFactory factory);  SLDParser(StyleFactory factory, FilterFactory filterFactory);  SLDParser(StyleFactory factory, String filename);  SLDParser(StyleFactory factory, File f);  SLDParser(StyleFactory factory, java.net.URL url);  SLDParser(StyleFactory factory, java.io.InputStream s);  SLDParser(StyleFactory factory, java.io.Reader r); void setInput(String filename); void setInput(File f); void setInput(java.net.URL url); void setInput(java.io.InputStream in); void setInput(java.io.Reader in); Style[] readXML(); Style[] readDOM(); Style[] readDOM(org.w3c.dom.Document document); StyledLayerDescriptor parseSLD(); StyledLayerDescriptor parseDescriptor(Node root); NamedStyle parseNamedStyle(Node n); Style parseStyle(Node n); }
SLDParser { public Style[] readXML() { javax.xml.parsers.DocumentBuilderFactory dbf = javax.xml.parsers.DocumentBuilderFactory .newInstance(); dbf.setNamespaceAware(true); try { javax.xml.parsers.DocumentBuilder db = dbf.newDocumentBuilder(); dom = db.parse(source); } catch (javax.xml.parsers.ParserConfigurationException pce) { throw new RuntimeException(pce); } catch (org.xml.sax.SAXException se) { throw new RuntimeException(se); } catch (java.io.IOException ie) { throw new RuntimeException(ie); } return readDOM(dom); } SLDParser(StyleFactory factory);  SLDParser(StyleFactory factory, FilterFactory filterFactory);  SLDParser(StyleFactory factory, String filename);  SLDParser(StyleFactory factory, File f);  SLDParser(StyleFactory factory, java.net.URL url);  SLDParser(StyleFactory factory, java.io.InputStream s);  SLDParser(StyleFactory factory, java.io.Reader r); void setInput(String filename); void setInput(File f); void setInput(java.net.URL url); void setInput(java.io.InputStream in); void setInput(java.io.Reader in); Style[] readXML(); Style[] readDOM(); Style[] readDOM(org.w3c.dom.Document document); StyledLayerDescriptor parseSLD(); StyledLayerDescriptor parseDescriptor(Node root); NamedStyle parseNamedStyle(Node n); Style parseStyle(Node n);  }