Package groovy.yaml
Class YamlSlurper
java.lang.Object
groovy.yaml.YamlSlurper
Represents a YAML parser
- Since:
- 3.0.0
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionParse the content of the specified file into a tree of Nodes.parse(InputStream stream) Parse the content of the specified reader into a tree of Nodes.Parse the content of the specified reader into a tree of Nodes.Parse the content of the specified path into a tree of Nodes.Parse the content of the specified yaml into a tree of Nodes.
- 
Constructor Details- 
YamlSlurperpublic YamlSlurper()
 
- 
- 
Method Details- 
parseTextParse the content of the specified yaml into a tree of Nodes.- Parameters:
- yaml- the content of yaml
- Returns:
- the root node of the parsed tree of Nodes
 
- 
parseParse the content of the specified reader into a tree of Nodes.- Parameters:
- reader- the reader of yaml
- Returns:
- the root node of the parsed tree of Nodes
 
- 
parseParse the content of the specified reader into a tree of Nodes.- Parameters:
- stream- the reader of yaml
- Returns:
- the root node of the parsed tree of Nodes
 
- 
parseParse the content of the specified file into a tree of Nodes.- Parameters:
- file- the reader of yaml
- Returns:
- the root node of the parsed tree of Nodes
- Throws:
- IOException
 
- 
parseParse the content of the specified path into a tree of Nodes.- Parameters:
- path- the reader of yaml
- Returns:
- the root node of the parsed tree of Nodes
- Throws:
- IOException
 
 
-