6c970474e9416807cabde3620045906ad3903c6c |
|
01-Nov-2016 |
Przemyslaw Szczepaniak <pszczepaniak@google.com> |
java.util.zip.Zip* port from openJdk8u60 - Added missing android-changed tags for various changes. - Fixed buggy extended DOS timestamp generation/reading in ZipEntry and ZipUtils. ZipEntry: -Support for extended dos time (better timestamp resolution). -Support for last modification, access time and creation time stored in optional extra data. -Because of last modification field, setTime works for ranges outside of dos time range (< 1980 && > 2099). THIS change breaks ZipEntryTest.test_setTimeJ. IMHO it's worth to adopt new behavior. ZipFile: -Added spliterator support. -Moved entries() iterator implementation to inner named class. -ZipFileInputStream#read modifies pos/rem field in a synchronized block. ZipInputStream: -Removed code for parsing optional extra data in .readLOC (moved to ZipEntry). ZipOutputStream: -New property for inhibiting Zip64 for > 64k entries -ZipEntry last modification, access time and creation time support ZipUtils.java: -New file with common, time and byte-array related methods extracted from ZipEntry and ZipFile java_util_zip_ZipFile.c -Use of ZIP_GetEntry2 with explicit addSlash param zip_util.c/h: -hash(const char *s) no longer used. -New method, ZIP_GetEntry2, with explicit handling of adding slash at the name end -Zip entry name may include embedded null character. Test: CtsLibcoreTestCases Bug: 29935305 Change-Id: Ib691c81b158ec37419a903bfa4261a12139fbff7
|