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 aStyledLayerDescriptor
from 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 StyledLayerDescriptor
parse()
Parse the yaml provided to this instance into aStyledLayerDescriptor
and return the result.void
setResourceLocator(ResourceLocator locator)
void
setUomMapper(UomMapper uomMapper)
void
setZoomContextFinders(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 aStyledLayerDescriptor
and return the result.- Throws:
IOException
-
-