-
Classes Class Description org.apache.commons.io.CopyUtils Use IOUtils. Will be removed in 3.0. Methods renamed to IOUtils.write() or IOUtils.copy(). Null handling behavior changed in IOUtils (null data does not throw NullPointerException).org.apache.commons.io.DirectoryWalker Apache Commons IO no longer uses this class. Instead, usePathUtils.walk(java.nio.file.Path, org.apache.commons.io.file.PathFilter, int, boolean, java.nio.file.FileVisitOption...)
orFiles.walkFileTree(java.nio.file.Path, java.util.Set, int, java.nio.file.FileVisitor)
, and friends.org.apache.commons.io.FileCleaner org.apache.commons.io.filefilter.WildcardFilter Use WildcardFileFilter. Deprecated as this class performs directory filtering which it shouldn't do, but that can't be removed due to compatibility.org.apache.commons.io.FileSystemUtils As of 2.6 deprecated without replacement. Use equivalent methods inFileStore
instead, e.g.Files.getFileStore(Paths.get("/home")).getUsableSpace()
or iterate overFileSystems.getDefault().getFileStores()
-
Exceptions Exceptions Description org.apache.commons.io.IOExceptionWithCause (since 2.5) useIOException
instead
-
Fields Field Description org.apache.commons.io.Charsets.ISO_8859_1 Use Java 7'sStandardCharsets
org.apache.commons.io.Charsets.US_ASCII Use Java 7'sStandardCharsets
org.apache.commons.io.Charsets.UTF_16 Use Java 7'sStandardCharsets
org.apache.commons.io.Charsets.UTF_16BE Use Java 7'sStandardCharsets
org.apache.commons.io.Charsets.UTF_16LE Use Java 7'sStandardCharsets
org.apache.commons.io.Charsets.UTF_8 Use Java 7'sStandardCharsets
org.apache.commons.io.filefilter.FileFileFilter.FILE org.apache.commons.io.IOUtils.LINE_SEPARATOR UseSystem.lineSeparator()
.