| |
|
| java.lang.Object org.geotools.styling.SLDParser
SLDParser | public class SLDParser (Code) | | TODO: This really needs to be container ready
author: jgarnett |
SLDParser | public SLDParser(StyleFactory factory)(Code) | | Create a Stylereader - use if you already have a dom to parse.
Parameters: factory - The StyleFactory to use to build the style |
SLDParser | public SLDParser(StyleFactory factory, java.io.InputStream s)(Code) | | Creates a new SLDStyle object.
Parameters: factory - The StyleFactory to use to read the file Parameters: s - The inputstream to be read |
SLDParser | public SLDParser(StyleFactory factory, java.io.Reader r)(Code) | | Creates a new SLDStyle object.
Parameters: factory - The StyleFactory to use to read the file Parameters: r - The inputstream to be read |
parseNamedStyle | public NamedStyle parseNamedStyle(Node n)(Code) | | Parses a NamedStyle from node.
A NamedStyle is used to refer to a style that has a name in a WMS,
and is defined as:
A NamedStyle is used to refer to a style that has a name in a WMS.
Parameters: n - |
parseStyle | public Style parseStyle(Node n)(Code) | | build a style for the Node provided
Parameters: n - the node which contains the style to be parsed. the Style constructed. throws: RuntimeException - if an error occurs setting up the parser |
readDOM | public Style[] readDOM(org.w3c.dom.Document document)(Code) | | Read the DOM provided and create a Style object for each user style found
Parameters: document - a dom containing the SLD Style[] the styles constructed. |
readXML | public Style[] readXML()(Code) | | Read the xml inputsource provided and create a Style object for each user
style found
Style[] the styles constructed. throws: RuntimeException - if a parsing error occurs |
setInput | public void setInput(java.io.InputStream in)(Code) | | Sets the input stream to read the SLD from
Parameters: in - the inputstream used to read the SLD from |
setInput | public void setInput(java.io.Reader in)(Code) | | Sets the input stream to read the SLD from
Parameters: in - the inputstream used to read the SLD from |
|
|
|