ZestADZ/Predict-Util — comment on commit c6767cef0eb8380e7b8c29e33e5d23b7516d5a03
File: src/main/java/org/zestadz/predict/predict_util/Api134Ms.java line 181
By gerritjvv:

All IO classes must be within a Try finally,
This ensures that in case of error we do not leave the data open

For file copy its easier (and more performant to use) http://commons.apache.org/io/api-release/index.html?org/apache/commons/io/FileUtils.html
See:

copyInputStreamToFile(InputStream source,
File destination)
throws IOException