-
Classes Class Description org.apache.commons.io.CopyUtils Use IOUtils. Will be removed in 2.0. Methods renamed to IOUtils.write() or IOUtils.copy(). Null handling behaviour changed in IOUtils (null data does not throw NullPointerException).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
-
Constructors Constructor Description org.apache.commons.io.input.ReaderInputStream(Reader) 2.5 useReaderInputStream(Reader, Charset)
insteadorg.apache.commons.io.input.ReversedLinesFileReader(File) 2.5 useReversedLinesFileReader(File, Charset)
insteadorg.apache.commons.io.output.LockableFileWriter(File, boolean, String) 2.5 useLockableFileWriter(File, Charset, boolean, String)
insteadorg.apache.commons.io.output.WriterOutputStream(Writer) 2.5 useWriterOutputStream(Writer, Charset)
instead