yamlbeans icon indicating copy to clipboard operation
yamlbeans copied to clipboard

Support try-with-resources in Java 7+ for YamlWriter and YamlReader

Open eburtsev opened this issue 7 years ago • 2 comments

Closes #62

eburtsev avatar Apr 20 '17 18:04 eburtsev

Any word on getting this PR deconflicted and merged? It would be nice to have!

AndrewTasso avatar Sep 12 '18 15:09 AndrewTasso

YamlWriter.close() is not simply releasing resources, the important thing is to convert the input object into yaml format and write it to the stream.

YamlReader.close() is to close the stream and release resources, this can implement Closeable interface. @NathanSweet
YamlWriter and YamlReader needs to implement the Closeable interface.

Mr14huashao avatar May 28 '20 03:05 Mr14huashao