Sebastian Bazley | 48882f1 | 2010-04-13 21:02:37 +0000 | [diff] [blame^] | 1 | |
| 2 | |
| 3 | Apache Commons Compress 1.1-SNAPSHOT RELEASE NOTES |
| 4 | |
| 5 | Release 1.1 |
| 6 | |
| 7 | Changes in this version include: |
| 8 | |
| 9 | New features: |
| 10 | o COMPRESS-103: ZipArchiveInputStream can optionally extract data that used |
| 11 | the STORED compression method and a data descriptor. |
| 12 | Doing so in a stream is not safe in general, so you have to |
| 13 | explicitly enable the feature. By default the stream will |
| 14 | throw an exception if it encounters such an entry. |
| 15 | o COMPRESS-98: The ZIP classes will throw specialized exceptions if any |
| 16 | attempt is made to read or write data that uses zip features |
| 17 | not supported (yet). |
| 18 | o COMPRESS-99: ZipFile#getEntries returns entries in a predictable order - |
| 19 | the order they appear inside the central directory. |
| 20 | A new method getEntriesInPhysicalOrder returns entries in |
| 21 | order of the entry data, i.e. the order ZipArchiveInputStream |
| 22 | would see. |
| 23 | o The Archive*Stream and ZipFile classes now have |
| 24 | can(Read|Write)EntryData methods that can be used to check |
| 25 | whether a given entry's data can be read/written. |
| 26 | The method currently returns false for ZIP archives if an |
| 27 | entry uses an unsupported compression method or encryption. |
| 28 | o COMPRESS-89: The ZIP classes now detect encrypted entries. |
| 29 | o COMPRESS-97: Added autodetection of compression format to |
| 30 | CompressorStreamFactory. |
| 31 | o COMPRESS-95: Improve ExceptionMessages in ArchiveStreamFactory Thanks to Joerg Bellmann. |
| 32 | o A new constructor of TarArchiveEntry can create entries with |
| 33 | names that start with slashes - the default is to strip |
| 34 | leading slashes in order to create relative path names. |
| 35 | o ArchiveEntry now has a getLastModifiedDate method. |
| 36 | o COMPRESS-78: Add a BZip2Utils class modelled after GZipUtils Thanks to Jukka Zitting. |
| 37 | |
| 38 | Fixed Bugs: |
| 39 | o COMPRESS-100: ZipArchiveInputStream will throw an exception if it detects an |
| 40 | entry that uses a data descriptor for a STORED entry since it |
| 41 | cannot reliably find the end of data for this "compression" |
| 42 | method. |
| 43 | o COMPRESS-101: ZipArchiveInputStream should now properly read archives that |
| 44 | use data descriptors but without the "unofficial" signature. |
| 45 | o COMPRESS-74: ZipArchiveInputStream failed to update the number of bytes |
| 46 | read properly. |
| 47 | o ArchiveInputStream has a new method getBytesRead that should |
| 48 | be preferred over getCount since the later may truncate the |
| 49 | number of bytes read for big archives. |
| 50 | o COMPRESS-85: The cpio archives created by CpioArchiveOutputStream couldn't |
| 51 | be read by many existing native implementations because the |
| 52 | archives contained multiple entries with the same inode/device |
| 53 | combinations and weren't padded to a blocksize of 512 bytes. |
| 54 | o COMPRESS-73: ZipArchiveEntry, ZipFile and ZipArchiveInputStream are now |
| 55 | more lenient when parsing extra fields. |
| 56 | o Improved exception message if the extra field data in ZIP |
| 57 | archives cannot be parsed. |
| 58 | o COMPRESS-94: ZipArchiveEntry's equals method was broken for entries created |
| 59 | with the String-arg constructor. This lead to broken ZIP |
| 60 | archives if two different entries had the same hash code. Thanks to Anon Devs. |
| 61 | o COMPRESS-87: ZipArchiveInputStream could repeatedly return 0 on read() when |
| 62 | the archive was truncated. Thanks to Antoni Mylka. |
| 63 | o COMPRESS-86: Tar archive entries holding the file name for names longer |
| 64 | than 100 characters in GNU longfile mode didn't properly |
| 65 | specify they'd be using the "oldgnu" extension. |
| 66 | o COMPRESS-83: Delegate all read and write methods in GZip stream in order to |
| 67 | speed up operations. |
| 68 | o The ar and cpio streams now properly read and write last |
| 69 | modified times. |
| 70 | o COMPRESS-81: TarOutputStream can leave garbage at the end of the archive |
| 71 | |
| 72 | |
| 73 | |
| 74 | For complete information on Commons Compress, including instructions on how to submit bug reports, |
| 75 | patches, or suggestions for improvement, see the Apache Commons Compress website: |
| 76 | |
| 77 | http://commons.apache.org/compress/ |
| 78 | |
| 79 | |