org.yaml.snakeyaml
Class Loader

java.lang.Object
  extended by org.yaml.snakeyaml.Loader

public class Loader
extends Object

See Also:
PyYAML for more information

Field Summary
protected  BaseConstructor constructor
           
protected  Resolver resolver
           
 
Constructor Summary
Loader()
           
Loader(BaseConstructor constructor)
           
 
Method Summary
 Node compose(Reader yaml)
          Parse the first YAML document in a stream and produce the corresponding representation tree.
 Iterable<Node> composeAll(Reader yaml)
          Parse all YAML documents in a stream and produce corresponding representation trees.
 Object load(Reader io)
           
 Iterable<Object> loadAll(Reader yaml)
           
 Iterable<Event> parse(Reader yaml)
          Parse a YAML stream and produce parsing events.
 void setResolver(Resolver resolver)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

constructor

protected final BaseConstructor constructor

resolver

protected Resolver resolver
Constructor Detail

Loader

public Loader(BaseConstructor constructor)

Loader

public Loader()
Method Detail

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.