-
Deprecated ClassesClassDescriptionUse IOUtils. Will be removed in 2.0. Methods renamed to IOUtils.write() or IOUtils.copy(). Null handling behavior changed in IOUtils (null data does not throw NullPointerException).Use WildcardFileFilter. Deprecated as this class performs directory filtering which it shouldn't do, but that can't be removed due to compatibility.As of 2.6 deprecated without replacement. Use equivalent methods in
FileStore
instead, e.g.Files.getFileStore(Paths.get("/home")).getUsableSpace()
or iterate overFileSystems.getDefault().getFileStores()
-
Deprecated Exceptions
-
Deprecated FieldsFieldDescriptionUse Java 7's
StandardCharsets
Use Java 7'sStandardCharsets
Use Java 7'sStandardCharsets
Use Java 7'sStandardCharsets
Use Java 7'sStandardCharsets
Use Java 7'sStandardCharsets
-
Deprecated MethodsMethodDescription2.5 use
CopyUtils.copy(byte[], Writer, String)
instead2.5 useCopyUtils.copy(InputStream, Writer, String)
instead2.5 useCopyUtils.copy(Reader, OutputStream, String)
instead2.5 useCopyUtils.copy(String, OutputStream, String)
insteadUse freeSpaceKb(String) Deprecated from 1.3, may be removed in 2.0As of 2.6 deprecated without replacement. Please useFileStore.getUsableSpace()
.As of 2.6 deprecated without replacement. Please useFileStore.getUsableSpace()
.As of 2.6 deprecated without replacement. Please useFileStore.getUsableSpace()
.As of 2.6 deprecated without replacement. Please useFileStore.getUsableSpace()
.2.5 useFileUtils.readFileToString(File, Charset)
instead (and specify the appropriate encoding)2.5 useFileUtils.readLines(File, Charset)
instead (and specify the appropriate encoding)2.5 useFileUtils.write(File, CharSequence, Charset)
instead (and specify the appropriate encoding)2.5 useFileUtils.write(File, CharSequence, Charset, boolean)
instead (and specify the appropriate encoding)2.5 useFileUtils.writeStringToFile(File, String, Charset)
instead (and specify the appropriate encoding)2.5 useFileUtils.writeStringToFile(File, String, Charset, boolean)
instead (and specify the appropriate encoding)As of 2.6 deprecated without replacement. Please use the try-with-resources statement or handle suppressed exceptions manually.As of 2.6 deprecated without replacement. Please use the try-with-resources statement or handle suppressed exceptions manually.As of 2.6 deprecated without replacement. Please use the try-with-resources statement or handle suppressed exceptions manually.As of 2.6 deprecated without replacement. Please use the try-with-resources statement or handle suppressed exceptions manually.As of 2.6 deprecated without replacement. Please use the try-with-resources statement or handle suppressed exceptions manually.As of 2.6 deprecated without replacement. Please use the try-with-resources statement or handle suppressed exceptions manually.As of 2.6 deprecated without replacement. Please use the try-with-resources statement or handle suppressed exceptions manually.As of 2.6 deprecated without replacement. Please use the try-with-resources statement or handle suppressed exceptions manually.As of 2.6 deprecated without replacement. Please use the try-with-resources statement or handle suppressed exceptions manually.2.5 useIOUtils.copy(InputStream, Writer, Charset)
instead2.5 useIOUtils.copy(Reader, OutputStream, Charset)
instead2.5 useIOUtils.readLines(InputStream, Charset)
instead2.5 useIOUtils.toByteArray(Reader, Charset)
instead2.5 UseString.getBytes()
instead2.5 useIOUtils.toCharArray(InputStream, Charset)
instead2.5 useIOUtils.toInputStream(CharSequence, Charset)
instead2.5 useIOUtils.toInputStream(String, Charset)
instead2.5 UseString(byte[])
instead2.5 useIOUtils.toString(InputStream, Charset)
instead2.5 useIOUtils.toString(URI, Charset)
instead2.5 useIOUtils.toString(URL, Charset)
instead2.5 useIOUtils.write(byte[], Writer, Charset)
instead2.5 useIOUtils.write(char[], OutputStream, Charset)
instead2.5 useIOUtils.write(CharSequence, OutputStream, Charset)
insteadreplaced by write(CharSequence, OutputStream)replaced by write(CharSequence, OutputStream, String)replaced by write(CharSequence, Writer)2.5 useIOUtils.write(String, OutputStream, Charset)
instead2.5 useIOUtils.writeLines(Collection, String, OutputStream, Charset)
insteadAs of 2.6 deprecated without replacement. Please use the try-with-resources statement or handle suppressed exceptions manually.2.5 useAbstractByteArrayOutputStream.toString(String)
instead
-
Deprecated ConstructorsConstructorDescription2.5 use
ReaderInputStream(Reader, Charset)
instead2.5 useReversedLinesFileReader(File, Charset)
instead2.5 useLockableFileWriter(File, Charset, boolean, String)
instead2.5 useWriterOutputStream(Writer, Charset)
instead