Package groovy.yaml
Class YamlSlurper
- java.lang.Object
- 
- groovy.yaml.YamlSlurper
 
- 
 public class YamlSlurper extends Object Represents a YAML parser- Since:
- 3.0.0
 
- 
- 
Constructor SummaryConstructors Constructor Description YamlSlurper()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectparse(File file)Parse the content of the specified file into a tree of Nodes.Objectparse(InputStream stream)Parse the content of the specified reader into a tree of Nodes.Objectparse(Reader reader)Parse the content of the specified reader into a tree of Nodes.Objectparse(Path path)Parse the content of the specified path into a tree of Nodes.ObjectparseText(String yaml)Parse the content of the specified yaml into a tree of Nodes.
 
- 
- 
- 
Method Detail- 
parseTextpublic Object parseText(String yaml) Parse 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
 
 - 
parsepublic Object parse(Reader reader) Parse 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
 
 - 
parsepublic Object parse(InputStream stream) Parse 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
 
 - 
parsepublic Object parse(File file) throws IOException Parse 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
 
 - 
parsepublic Object parse(Path path) throws IOException Parse 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
 
 
- 
 
-