public class YamlParser extends Object
YamlObject
} and
then delegating to a YamlParseHandler
. See #parse(YamlParseHandler, Map))
.Constructor and Description |
---|
YamlParser(InputStream yaml) |
YamlParser(Reader yaml) |
Modifier and Type | Method and Description |
---|---|
<T extends YamlParseHandler> |
parse(T root) |
<T extends YamlParseHandler> |
parse(T root,
Map<String,Object> hints)
Parse the yaml provided to this instance using the provided
YamlParseHandler . |
public YamlParser(InputStream yaml)
public YamlParser(Reader yaml)
public <T extends YamlParseHandler> T parse(T root) throws IOException
IOException
public <T extends YamlParseHandler> T parse(T root, Map<String,Object> hints) throws IOException
YamlParseHandler
.root
- The YamlParseHandler
that handles the root of the parsed YamlObject
.hints
- YamlParseHandler
, once it has finished handling the parsed YamlObject
..IOException
Copyright © 1996–2019 Geotools. All rights reserved.