Apache Commons IO 2.1 发布
出自大连开源软件公共开发服务平台
Apache Commons IO 2.1 发布
摘要:Apache Commons IO 2.1 发布了,这是从 2.0.1 版本直接升级,包括7个新特性以及一些bug修复。新特性:o Use standard Maven directory layout o Add IOUtils API toString for URL and URI to get contents...
Apache Commons IO 2.1 发布了,这是从 2.0.1 版本直接升级,包括7个新特性以及一些bug修复。
新特性:
o Use standard Maven directory layout
o Add IOUtils API toString for URL and URI to get contents
o Add API FileUtils.copyFile(File input, OutputStream output)
o FileAlterationObserver has no getter for FileFilter
o Add FileUtils.getFile API with varargs parameter
o Add new APPEND parameter for writing string into files
o Add new read method "toByteArray" to handle InputStream with known size.
修复的bug:
o Dubious use of mkdirs() return code
o ReaderInputStream enters infinite loop when it encounters an unmappable character
o FileUtils.moveFile() JavaDoc should specify FileExistsException thrown
o ClassLoaderObjectInputStream does not handle Proxy classes
o Tailer returning partial lines when reaching EOF before EOL
o FileUtils.copyFile() throws IOException when copying large files to a shared directory (on Windows)
o FileSystemUtils.freeSpaceKb throws exception for Windows volumes with no visible files.



