Package org.geotools.ysld.parse
Class YamlParser
- Object
-
- YamlParser
-
- Direct Known Subclasses:
YsldParser
public class YamlParser extends Object
Base Yaml parsing class, responsible for parsing the yaml input into aYamlObject} and then delegating to aYamlParseHandler. See {@link #parse(YamlParseHandler, Map))}.
-
-
Constructor Summary
Constructors Constructor Description YamlParser(InputStream yaml)YamlParser(Reader yaml)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends YamlParseHandler>
Tparse(T root)<T extends YamlParseHandler>
Tparse(T root, Map<String,Object> hints)Parse the yaml provided to this instance using the providedYamlParseHandler.
-
-
-
Constructor Detail
-
YamlParser
public YamlParser(InputStream yaml)
-
YamlParser
public YamlParser(Reader yaml)
-
-
Method Detail
-
parse
public <T extends YamlParseHandler> T parse(T root) throws IOException
- Throws:
IOException
-
parse
public <T extends YamlParseHandler> T parse(T root, Map<String,Object> hints) throws IOException
Parse the yaml provided to this instance using the providedYamlParseHandler.- Parameters:
root- TheYamlParseHandlerthat handles the root of the parsedYamlObject.- Returns:
- The root
YamlParseHandler, once it has finished handling the parsedYamlObject.. - Throws:
IOException
-
-