Package org.geotools.ysld.parse
Class YsldParser
- Object
-
- YamlParser
-
- YsldParser
-
public class YsldParser extends YamlParser
Parses a Yaml/Ysld stream into GeoTools style objects by returning aStyledLayerDescriptorfrom theparse()method.
-
-
Constructor Summary
Constructors Constructor Description YsldParser(InputStream ysld)YsldParser(Reader reader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StyledLayerDescriptorparse()Parse the yaml provided to this instance into aStyledLayerDescriptorand return the result.voidsetResourceLocator(ResourceLocator locator)voidsetUomMapper(UomMapper uomMapper)voidsetZoomContextFinders(List<ZoomContextFinder> zCtxtFinders)-
Methods inherited from class YamlParser
parse, parse
-
-
-
-
Constructor Detail
-
YsldParser
public YsldParser(InputStream ysld) throws IOException
- Throws:
IOException
-
YsldParser
public YsldParser(Reader reader) throws IOException
- Throws:
IOException
-
-
Method Detail
-
setZoomContextFinders
public void setZoomContextFinders(List<ZoomContextFinder> zCtxtFinders)
-
setResourceLocator
public void setResourceLocator(ResourceLocator locator)
-
setUomMapper
public void setUomMapper(UomMapper uomMapper)
-
parse
public StyledLayerDescriptor parse() throws IOException
Parse the yaml provided to this instance into aStyledLayerDescriptorand return the result.- Throws:
IOException
-
-