Skip to content

Commit 4ccf5c7

Browse files
committed
Release notes for 2.2.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1301334 13f79535-47bb-0310-9956-ffa450edef68
1 parent 3fdb1c3 commit 4ccf5c7

1 file changed

Lines changed: 31 additions & 31 deletions

File tree

RELEASE-NOTES.txt

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ $Id$
44
Version 2.1
55
Release Notes
66

7-
87
INTRODUCTION:
98

109
Commons IO is a package of Java utility classes for java.io's hierarchy.
@@ -14,6 +13,36 @@ reuse as to justify existence in java.io.
1413
Commons IO contains utility classes, stream implementations, file filters,
1514
file comparators and endian transformation classes.
1615

16+
==============================================================================
17+
Commons IO Package Version 2.2
18+
==============================================================================
19+
20+
New features:
21+
o Use terabyte (TB) , petabyte (PB) and exabyte (EB) in FileUtils.byteCountToDisplaySize(long size) Issue: IO-287. Thanks to Ron Kuris, Gary Gregory.
22+
o FileUtils.listFiles() doesn't return directories Issue: IO-173. Thanks to Marcos Vin�cius da Silva.
23+
o CharSequenceInputStream to efficiently stream content of a CharSequence Issue: IO-297. Thanks to Oleg Kalnichevski.
24+
o The second constructor of Tailer class does not pass 'delay' to the third one Issue: IO-304. Thanks to liangly.
25+
o TeeOutputStream does not call branch.close() when main.close() throws an exception Issue: IO-303. Thanks to fabian.barney.
26+
o ArrayIndexOutOfBoundsException in BOMInputStream when reading a file without BOM multiple times Issue: IO-302. Thanks to jsteuerwald, detinho.
27+
o Add IOUtils.closeQuietly(Selector) necessary Issue: IO-301. Thanks to kaykay.unique.
28+
o IOUtils.closeQuietly() should take a ServerSocket as a parameter Issue: IO-292. Thanks to sebb.
29+
o Add read/readFully methods to IOUtils Issue: IO-290. Thanks to sebb.
30+
o Supply a ReversedLinesFileReader Issue: IO-288. Thanks to Georg Henzler.
31+
o Add new function FileUtils.directoryContains. Issue: IO-291. Thanks to ggregory.
32+
o FileUtils.contentEquals and IOUtils.contentEquals - Add option to ignore "line endings"
33+
Added contentEqualsIgnoreEOL methods to both classes Issue: IO-275. Thanks to CJ Aspromgos.
34+
35+
Fixed Bugs:
36+
o FileUtils.moveDirectoryToDirectory removes source directory if destination is a subdirectory Issue: IO-300.
37+
o ReaderInputStream#read(byte[] b, int off, int len) should check for valid parameters Issue: IO-307.
38+
o ReaderInputStream#read(byte[] b, int off, int len) should always return 0 for length == 0 Issue: IO-306.
39+
o "FileUtils#deleteDirectoryOnExit(File)" does not work Issue: IO-276. Thanks to nkami.
40+
o BoundedInputStream.read() treats max differently from BoundedInputStream.read(byte[]...) Issue: IO-273. Thanks to sebb.
41+
o Various methods of class 'org.apache.commons.io.FileUtils' incorrectly suppress 'java.io.IOException' Issue: IO-298. Thanks to Christian Schulte.
42+
43+
Changes:
44+
o ReaderInputStream optimization: more efficient reading of small chunks of data Issue: IO-296. Thanks to Oleg Kalnichevski.
45+
1746
==============================================================================
1847
Commons IO Package Version 2.1
1948
==============================================================================
@@ -40,7 +69,6 @@ o FileSystemUtils.freeSpaceKb throws exception for Windows volumes with no visib
4069
Changes:
4170
o FileAlterationMonitor.stop(boolean allowIntervalToFinish) Issue: IO-259.
4271

43-
4472
==============================================================================
4573
Commons IO Package Version 2.0.1
4674
==============================================================================
@@ -57,13 +85,11 @@ Semantic compatible - Yes
5785
Commons IO 2.0.1 requires a minimum of JDK 1.5
5886
(Commons IO 1.4 had a minimum of JDK 1.3)
5987

60-
6188
Enhancements from 2.0
6289
---------------------
6390

6491
* [IO-256] - Provide thread factory for FileAlternationMonitor
6592

66-
6793
Bug fixes from 2.0
6894
------------------
6995

@@ -86,7 +112,6 @@ Semantic compatible - Yes
86112
Commons IO 2.0 requires a minimum of JDK 1.5
87113
(Commons IO 1.4 had a minimum of JDK 1.3)
88114

89-
90115
Deprecations from 1.4
91116
---------------------
92117

@@ -99,7 +124,6 @@ Deprecations from 1.4
99124
- andFileFilter(IOFileFilter, IOFileFilter) in favour of and(IOFileFilter...)
100125
- orFileFilter(IOFileFilter, IOFileFilter) in favour of or(IOFileFilter...)
101126

102-
103127
Enhancements from 1.4
104128
---------------------
105129

@@ -145,7 +169,6 @@ Enhancements from 1.4
145169
* [IO-211] Proxy Input/Output streams - add pre/post processing support
146170
* [IO-242] Proxy Reader/Writer - add pre/post processing support
147171

148-
149172
Bug fixes from 1.4
150173
------------------
151174
* [IO-214] ByteArrayOutputStream - fix inconsistent synchronization of fields
@@ -174,7 +197,6 @@ Bug fixes from 1.4
174197
* [IO-235] Tests - remove unused YellOnFlushAndCloseOutputStream from CopyUtilsTest
175198
* [IO-161] Tests - fix FileCleaningTrackerTestCase hanging
176199

177-
178200
Documentation changes from 1.4
179201
------------------------------
180202
* [IO-183 FilenameUtils.getExtension() method documentation improvements
@@ -207,12 +229,10 @@ Commons IO 1.4 introduces four new implementations which depend on JDK 1.4 featu
207229
It has been built with the JDK source and target options set to JDK 1.3 and, except for
208230
those implementations, can be used with JDK 1.3 (see IO IO-127).
209231

210-
211232
Deprecations from 1.3.2
212233
-----------------------
213234
- FileCleaner deprecated in favour of FileCleaningTracker [see IO-116]
214235

215-
216236
Bug fixes from 1.3.2
217237
--------------------
218238
- FileUtils
@@ -225,7 +245,6 @@ Bug fixes from 1.3.2
225245
- HexDump
226246
- HexDump's use of static StringBuffers isn't thread-safe [IO-136]
227247

228-
229248
Enhancements from 1.3.2
230249
-----------------------
231250
- FileUtils
@@ -293,7 +312,6 @@ Enhancements from 1.3.2
293312
- PathFileComparator - compares files using file paths.
294313
- SizeFileComparator - compares files using file sizes.
295314

296-
297315
==============================================================================
298316
Commons IO Package Version 1.3.2
299317
==============================================================================
@@ -306,7 +324,6 @@ Source compatible - Yes
306324

307325
Semantic compatible - Yes
308326

309-
310327
Compatibility with 1.3
311328
----------------------
312329
Binary compatible - No
@@ -317,15 +334,13 @@ Source compatible - No
317334

318335
Semantic compatible - Yes
319336

320-
321337
Enhancements since 1.3.1
322338
------------------------
323339

324340
- Created the FileCleaningTracker, basically a non-static version of the
325341
FileCleaner, which can be controlled by the user. [IO-116]
326342
- The FileCleaner is deprecated.
327343

328-
329344
Bug fixes from 1.3.1
330345
--------------------
331346

@@ -335,15 +350,13 @@ Bug fixes from 1.3.1
335350
- Both readSwappedUnsignedInteger(...) methods could return negative
336351
numbers due to int/long casting. [IO-117]
337352

338-
339353
Bug fixes from 1.3
340354
------------------
341355

342356
- FileUtils
343357
- NPE in openOutputStream(File) when file has no parent in path [IO-112]
344358
- readFileToString(File) is not static [IO-113]
345359

346-
347360
==============================================================================
348361
Commons IO Package Version 1.3.1
349362
==============================================================================
@@ -358,15 +371,13 @@ Source compatible - No
358371

359372
Semantic compatible - Yes
360373

361-
362374
Bug fixes from 1.3
363375
------------------
364376

365377
- FileUtils
366378
- NPE in openOutputStream(File) when file has no parent in path [IO-112]
367379
- readFileToString(File) is not static [IO-113]
368380

369-
370381
==============================================================================
371382
Commons IO Package Version 1.3
372383
==============================================================================
@@ -380,7 +391,6 @@ Source compatible - Yes
380391
Semantic compatible - Yes
381392
Check the bug fixes section for semantic bug fixes
382393

383-
384394
Deprecations from 1.2
385395
---------------------
386396
- WildcardFilter deprecated, replaced by WildcardFileFilter
@@ -392,7 +402,6 @@ Deprecations from 1.2
392402
- freeSpaceKb returns much better and more consistent results
393403
- freeSpaceKb existed in v1.2, so this is a gentle cutover
394404

395-
396405
Bug fixes from 1.2
397406
------------------
398407
- LineIterator now implements Iterator
@@ -556,7 +565,6 @@ Enhancements from 1.2
556565
- ByteArrayOutputStream [IO-97]
557566
- Performance enhancements
558567

559-
560568
==============================================================================
561569
Commons IO Package Version 1.2
562570
==============================================================================
@@ -569,11 +577,9 @@ Source compatible - Yes
569577

570578
Semantic compatible - Yes
571579

572-
573580
Deprecations from 1.1
574581
---------------------
575582

576-
577583
Bug fixes from 1.1
578584
------------------
579585
- FileSystemUtils.freeSpace(drive)
@@ -586,7 +592,6 @@ Bug fixes from 1.1
586592
Locking mechanism was broken and only provided limited protection [38942]
587593
File deletion and locking in case of constructor error was broken
588594

589-
590595
Enhancements from 1.1
591596
---------------------
592597
- AgeFileFilter/SizeFileFilter
@@ -608,7 +613,6 @@ Enhancements from 1.1
608613
- FileUtils.copyDirectoryToDirectory
609614
New method to copy a directory to within another directory [36315]
610615

611-
612616
==============================================================================
613617
Commons IO Package Version 1.1
614618
==============================================================================
@@ -637,7 +641,6 @@ plus these bug fixes may affect you semantically:
637641
- FileUtils.sizeOfDirectory() (Bug fix 36801)
638642
May now return a size of 0 if the directory is security restricted
639643

640-
641644
Deprecations from 1.0
642645
---------------------
643646
- CopyUtils has been deprecated.
@@ -648,7 +651,6 @@ Deprecations from 1.0
648651
- IOUtils.toString(byte[]) - Use {@link String#String(byte[])}
649652
- IOUtils.toString(byte[],String) - Use {@link String#String(byte[],String)}
650653

651-
652654
Bug fixes from 1.0
653655
------------------
654656
- FileUtils - touch() [29821]
@@ -679,7 +681,6 @@ Bug fixes from 1.0
679681
- FileUtils - writeStringToFile()
680682
Null encoding now correctly uses the platform default
681683

682-
683684
Enhancements from 1.0
684685
---------------------
685686
- FilenameUtils - new class [33303,29351]
@@ -776,8 +777,7 @@ Enhancements from 1.0
776777
Create directories if necesssary
777778

778779
- IOUtils and EndianUtils are no longer final [28978]
779-
Allows developers to have subclasses if desired
780-
780+
Allows developers to have subclasses if desired
781781

782782
==============================================================================
783783
Feedback

0 commit comments

Comments
 (0)