org.yaml.snakeyaml
Class Loader
java.lang.Object
org.yaml.snakeyaml.Loader
public class Loader
- extends Object
- See Also:
- PyYAML for more information
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
constructor
protected final BaseConstructor constructor
resolver
protected Resolver resolver
Loader
public Loader(BaseConstructor constructor)
Loader
public Loader()
load
public Object load(Reader io)
loadAll
public Iterable<Object> loadAll(Reader yaml)
compose
public Node compose(Reader yaml)
- Parse the first YAML document in a stream and produce the corresponding
representation tree.
- Parameters:
yaml
- YAML document
- Returns:
- parsed root Node for the specified YAML document
composeAll
public Iterable<Node> composeAll(Reader yaml)
- Parse all YAML documents in a stream and produce corresponding
representation trees.
- Parameters:
yaml
- stream of YAML documents
- Returns:
- parsed root Nodes for all the specified YAML documents
setResolver
public void setResolver(Resolver resolver)
parse
public Iterable<Event> parse(Reader yaml)
- Parse a YAML stream and produce parsing events.
- Parameters:
yaml
- YAML document(s)
- Returns:
- parsed events
Copyright © 2008-2010. All Rights Reserved.