| Type | Changes | By |
|---|
 | Move acknowledgements from NOTICE to README Fixes COMPRESS-72. | |
 | TarArchiveEntry.parseTarHeader() includes the trailing space/NUL when parsing the octal size Fixes COMPRESS-113. | |
 | Command-line interface to list archive contents.
Usage: java -jar commons-compress-n.m.jar archive-name [zip|tar|etc] Fixes COMPRESS-108. | |
 | TarUtils.parseName does not properly handle characters outside the range 0-127 Fixes COMPRESS-118. | |
 | ArArchiveInputStream does not handle GNU extended filename records (//) Fixes COMPRESS-112. | |
 | Tar implementation does not support Pax headers
Added support for reading pax headers.
Note: does not support global pax headers Fixes COMPRESS-109. | |
 | ArchiveStreamFactory does not recognise tar files created by Ant Fixes COMPRESS-107. | |
 | Support "ustar" prefix field, which is used when file paths are longer
than 100 characters. Fixes COMPRESS-110. | |
 | Document that the name of an ZipArchiveEntry determines whether
an entry is considered a directory or not.
If you don't use the constructor with the File argument the entry's
name must end in a "/" in order for the entry to be known as a directory. Fixes COMPRESS-105. | |
 | ZipArchiveInputStream can optionally extract data that used
the STORED compression method and a data descriptor.
Doing so in a stream is not safe in general, so you have to
explicitly enable the feature. By default the stream will
throw an exception if it encounters such an entry. Fixes COMPRESS-103. | |
 | ZipArchiveInputStream will throw an exception if it detects an
entry that uses a data descriptor for a STORED entry since it
cannot reliably find the end of data for this "compression"
method. Fixes COMPRESS-100. | |
 | ZipArchiveInputStream should now properly read archives that
use data descriptors but without the "unofficial" signature. Fixes COMPRESS-101. | |
 | The ZIP classes will throw specialized exceptions if any
attempt is made to read or write data that uses zip features
not supported (yet). Fixes COMPRESS-98. | |
 | ZipFile#getEntries returns entries in a predictable order -
the order they appear inside the central directory.
A new method getEntriesInPhysicalOrder returns entries in
order of the entry data, i.e. the order ZipArchiveInputStream
would see. Fixes COMPRESS-99. | |
 | The Archive*Stream and ZipFile classes now have
can(Read|Write)EntryData methods that can be used to check
whether a given entry's data can be read/written.
The method currently returns false for ZIP archives if an
entry uses an unsupported compression method or encryption. | |
 | The ZIP classes now detect encrypted entries. Fixes COMPRESS-89. | |
 | Move DOS/Java time conversions into Zip utility class. Fixes COMPRESS-79. | |
 | ZipArchiveInputStream failed to update the number of bytes
read properly. Fixes COMPRESS-74. | |
 | ArchiveInputStream has a new method getBytesRead that should
be preferred over getCount since the later may truncate the
number of bytes read for big archives. | |
 | The cpio archives created by CpioArchiveOutputStream couldn't
be read by many existing native implementations because the
archives contained multiple entries with the same inode/device
combinations and weren't padded to a blocksize of 512 bytes. Fixes COMPRESS-85. | |
 | ZipArchiveEntry, ZipFile and ZipArchiveInputStream are now
more lenient when parsing extra fields. Fixes COMPRESS-73. | |
 | ZipArchiveInputStream does not show location in file where a problem occurred. Fixes COMPRESS-75. | |
 | cpio is terribly slow.
Documented that buffered streams are needed for performance Fixes COMPRESS-82. | |
 | Added autodetection of compression format to
CompressorStreamFactory. Fixes COMPRESS-97. | |
 | Improved exception message if the extra field data in ZIP
archives cannot be parsed. | |
 | Tar format unspecified - current support documented. Fixes COMPRESS-17. | |
 | Improve ExceptionMessages in ArchiveStreamFactory Fixes COMPRESS-95. Thanks to Joerg Bellmann. | |
 | ZipArchiveEntry's equals method was broken for entries created
with the String-arg constructor. This lead to broken ZIP
archives if two different entries had the same hash code. Fixes COMPRESS-94. Thanks to Anon Devs. | |
 | ZipArchiveInputStream could repeatedly return 0 on read() when
the archive was truncated. Fixes COMPRESS-87. Thanks to Antoni Mylka. | |
 | Tar archive entries holding the file name for names longer
than 100 characters in GNU longfile mode didn't properly
specify they'd be using the "oldgnu" extension. Fixes COMPRESS-86. | |
 | A new constructor of TarArchiveEntry can create entries with
names that start with slashes - the default is to strip
leading slashes in order to create relative path names. | |
 | Delegate all read and write methods in GZip stream in order to
speed up operations. Fixes COMPRESS-83. | |
 | ArchiveEntry now has a getLastModifiedDate method. | |
 | The ar and cpio streams now properly read and write last
modified times. | |
 | TarOutputStream can leave garbage at the end of the archive Fixes COMPRESS-81. | |
 | Add a BZip2Utils class modelled after GZipUtils Fixes COMPRESS-78. Thanks to Jukka Zitting. | |