On this page
[Java] Class TomlSlurper
- groovy.toml.TomlSlurper
Constructor Summary
Constructor and description |
---|
TomlSlurper() |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
public Object |
parse(Reader reader) Parse the content of the specified reader into a tree of Nodes. |
|
public Object |
parse(InputStream stream) Parse the content of the specified reader into a tree of Nodes. |
|
public Object |
parse(File file) Parse the content of the specified file into a tree of Nodes. |
|
public Object |
parse(Path path) Parse the content of the specified path into a tree of Nodes. |
|
public Object |
parseText(String toml) Parse the content of the specified toml into a tree of Nodes. |
Inherited Methods Summary
Constructor Detail
public TomlSlurper()
Method Detail
public Object parse(Reader reader)
Parse the content of the specified reader into a tree of Nodes.
- Parameters:
reader
- the reader of toml
- Returns:
- the root node of the parsed tree of Nodes
public Object parse(InputStream stream)
Parse the content of the specified reader into a tree of Nodes.
- Parameters:
stream
- the reader of toml
- Returns:
- the root node of the parsed tree of Nodes
public Object parse(File file)
Parse the content of the specified file into a tree of Nodes.
- Parameters:
file
- the reader of toml
- Returns:
- the root node of the parsed tree of Nodes
public Object parse(Path path)
Parse the content of the specified path into a tree of Nodes.
- Parameters:
path
- the reader of toml
- Returns:
- the root node of the parsed tree of Nodes
public Object parseText(String toml)
Parse the content of the specified toml into a tree of Nodes.
- Parameters:
toml
- the content of toml
- Returns:
- the root node of the parsed tree of Nodes
© 2003-2022 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/4.0.0/html/gapi/groovy/toml/TomlSlurper.html