paolo di tommaso created GROOVY-9504:
----------------------------------------
Summary: Add support for Path to slurper classes
Key: GROOVY-9504
URL: https://issues.apache.org/jira/browse/GROOVY-9504
Project: Groovy
Issue Type: Improvement
Components: groovy-yaml, JSON, XML Processing
Reporter: paolo di tommaso
The classes `JsonSlurper`, `YamlSlurper` and `XmlSlurper` allow the parsing of
the content of a file object specified as `File` object, however, it's missing
a `parse` method taking the
[Path|[https://docs.oracle.com/javase/8/docs/api/java/nio/file/Paths.html]]
interface as a argument.
As a workaround, it's possible to convert a `File` to a `Path` using the
`toPath()` method however this does not fully support the new API features,
notably the ability to reference and therefore access foreign files e.g.
non-local files such as in-memory, S3, etc.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)