According to documentation (http://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html), the whole java.nio.file.Files class is since Java 1.7. But maybe we don't care about Java 6?