|
| 1 | +<?xml version="1.0"?> |
| 2 | +<!-- |
| 3 | +Copyright 2006 The Apache Software Foundation. |
| 4 | + |
| 5 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | +you may not use this file except in compliance with the License. |
| 7 | +You may obtain a copy of the License at |
| 8 | +
|
| 9 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +
|
| 11 | +Unless required by applicable law or agreed to in writing, software |
| 12 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +See the License for the specific language governing permissions and |
| 15 | +limitations under the License. |
| 16 | +--> |
| 17 | +<document> |
| 18 | + <properties> |
| 19 | + <title>Upgrade from 1.1 to 1.2</title> |
| 20 | + <author email="commons-dev@jakarta.apache.org">Commons Documentation Team</author> |
| 21 | + </properties> |
| 22 | +<body> |
| 23 | + |
| 24 | +<section name="Upgrade"> |
| 25 | +<p> |
| 26 | +These are the release notes and advice for upgrading Commons-IO from |
| 27 | +version 1.1 to version 1.2. |
| 28 | +<source> |
| 29 | +Commons IO is a package of Java utility classes for java.io's hierarchy. |
| 30 | +Classes in this package are considered to be so standard and of such high |
| 31 | +reuse as to justify existence in java.io. |
| 32 | + |
| 33 | +Commons IO contains utility classes, stream implementations, file filters, |
| 34 | +and endian transformation classes. |
| 35 | + |
| 36 | + |
| 37 | +Compatibility with 1.1 |
| 38 | +---------------------- |
| 39 | +Binary compatible - Yes |
| 40 | + |
| 41 | +Source compatible - Yes |
| 42 | + |
| 43 | +Semantic compatible - Yes |
| 44 | + |
| 45 | + |
| 46 | +Deprecations from 1.1 |
| 47 | +--------------------- |
| 48 | + |
| 49 | + |
| 50 | +Bug fixes from 1.1 |
| 51 | +------------------ |
| 52 | +- FileSystemUtils.freeSpace(drive) |
| 53 | + Fix to allow Windows based command to function in French locale |
| 54 | + |
| 55 | +- FileUtils.read* |
| 56 | + Increase certainty that files are closed in case of error |
| 57 | + |
| 58 | + |
| 59 | +Enhancements from 1.1 |
| 60 | +--------------------- |
| 61 | +- AgeFileFilter/SizeFileFilter |
| 62 | + New file filters that compares against the age and size of the file |
| 63 | + |
| 64 | +- FileSystemUtils.freeSpaceKb(drive) |
| 65 | + New method that unifies result to be in kilobytes [38574] |
| 66 | + |
| 67 | +- FileUtils.contentEquals(File,File) |
| 68 | + Performance improved by adding length and file location checking |
| 69 | + |
| 70 | +- FileUtils.iterateFiles |
| 71 | + Two new method to provide direct access to iterators over files |
| 72 | + |
| 73 | +- FileUtils.lineIterator |
| 74 | + IOUtils.lineIterator |
| 75 | + New methods to provide an iterator over the lines in a file [38083] |
| 76 | + |
| 77 | +- FileUtils.copyDirectoryToDirectory |
| 78 | + New method to copy a directory to within another directory [36315] |
| 79 | + |
| 80 | +</source> |
| 81 | +</p> |
| 82 | +</section> |
| 83 | + |
| 84 | +</body> |
| 85 | +</document> |
0 commit comments