| 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.FileSystemUtils |
As of 2.6 deprecated without replacement. Use equivalent
methods in
FileStore instead, e.g.
Files.getFileStore(Paths.get("/home")).getUsableSpace()
or iterate over FileSystems.getDefault().getFileStores() |
| 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.
|
| Exceptions | Description |
|---|---|
| org.apache.commons.io.IOExceptionWithCause |
(since 2.5) use
IOException instead |
| Field | Description |
|---|---|
| org.apache.commons.io.Charsets.ISO_8859_1 |
Use Java 7's
StandardCharsets |
| org.apache.commons.io.Charsets.US_ASCII |
Use Java 7's
StandardCharsets |
| org.apache.commons.io.Charsets.UTF_16 |
Use Java 7's
StandardCharsets |
| org.apache.commons.io.Charsets.UTF_16BE |
Use Java 7's
StandardCharsets |
| org.apache.commons.io.Charsets.UTF_16LE |
Use Java 7's
StandardCharsets |
| org.apache.commons.io.Charsets.UTF_8 |
Use Java 7's
StandardCharsets |
| Constructor | Description |
|---|---|
| org.apache.commons.io.output.LockableFileWriter(File, boolean, String) |
2.5 use
LockableFileWriter(File, Charset, boolean, String) instead |
| org.apache.commons.io.input.ReaderInputStream(Reader) |
2.5 use
ReaderInputStream(Reader, Charset) instead |
| org.apache.commons.io.input.ReversedLinesFileReader(File) |
2.5 use
ReversedLinesFileReader(File, Charset) instead |
| org.apache.commons.io.output.WriterOutputStream(Writer) |
2.5 use
WriterOutputStream(Writer, Charset) instead |