From the course: Java 8 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Managing files with Apache Commons FileUtils

Managing files with Apache Commons FileUtils - Java Tutorial

From the course: Java 8 Essential Training

Start my 1-month free trial

Managing files with Apache Commons FileUtils

- I've previously described how to copy a file using both the original file system that came with the original release of Java, and the new io libraries that came with Java 7. But there's yet another way to go. Using the Apache Commons libraries. Apache Commons is a project that incorporates utilities for many common tasks. The goal of Apache Commons is to take solutions that developers have found, and let them share them easily with the rest of the community. For file management, there's a special category called Commons IO. You'll find all sorts of Utility classes here. Now, if you're working with the most recent version of Java and you can use the new io libraries, I recommend doing that. But if you're working with older versions, or you're working under Android, and you want to simplify a lot of these tasks, it's worth looking at these tools. Now I've already downloaded the files that I need, and I've included what you need in the exercise files. I'll go to the current chapter to…

Contents