Searched refs:ZipUtil (Results 1 – 11 of 11) sorted by relevance
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/ |
D | ZipUtilTest.java | 61 final ZipLong test = ZipUtil.toDosTime(time); in testZipLong() 68 ZipUtil.adjustToLong(Integer.MAX_VALUE)); in testAdjustToLong() 70 ZipUtil.adjustToLong(Integer.MAX_VALUE + 1)); in testAdjustToLong() 72 ZipUtil.adjustToLong(2 * Integer.MAX_VALUE)); in testAdjustToLong() 77 final byte[] b1 = ZipUtil.toDosTime(0); in testMinTime() 80 final byte[] b2 = ZipUtil.toDosTime(0); // get the same time in testMinTime() 86 final byte[] b1 = ZipUtil.toDosTime(160441200000L); // 1.1..1975 in testOutsideCalendar() 97 final byte[] b1 = ZipUtil.toDosTime(date - tz.getOffset(date)); in testInsideCalendar() 125 final byte[] result = ZipUtil.reverse(bTest[i]); in testReverse() 137 assertEquals(1L, ZipUtil.bigToLong(big1)); in testBigToLong() [all …]
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/ |
D | X7875_NewUnix.java | 25 import static org.apache.commons.compress.archivers.zip.ZipUtil.reverse; 26 import static org.apache.commons.compress.archivers.zip.ZipUtil.signedByteToUnsignedInt; 27 import static org.apache.commons.compress.archivers.zip.ZipUtil.unsignedIntToSignedByte; 97 public long getUID() { return ZipUtil.bigToLong(uid); } in getUID() 107 public long getGID() { return ZipUtil.bigToLong(gid); } in getGID() 115 this.uid = ZipUtil.longToBig(l); in setUID() 124 this.gid = ZipUtil.longToBig(l); in setGID()
|
D | UnrecognizedExtraField.java | 65 localData = ZipUtil.copy(data); in setLocalFileDataData() 83 return ZipUtil.copy(localData); in getLocalFileDataData() 97 centralData = ZipUtil.copy(data); in setCentralDirectoryData() 120 return ZipUtil.copy(centralData); in getCentralDirectoryData()
|
D | PKWareExtraHeader.java | 102 localData = ZipUtil.copy(data); in setLocalFileDataData() 122 return ZipUtil.copy(localData); in getLocalFileDataData() 132 centralData = ZipUtil.copy(data); in setCentralDirectoryData() 157 return ZipUtil.copy(centralData); in getCentralDirectoryData()
|
D | UnparseableExtraFieldData.java | 76 return ZipUtil.copy(localFileData); in getLocalFileDataData() 87 ? getLocalFileDataData() : ZipUtil.copy(centralDirectoryData); in getCentralDirectoryData()
|
D | ZipUtil.java | 31 public abstract class ZipUtil { class 158 l = ZipUtil.adjustToLong((int) l); in longToBig()
|
D | ZipArchiveInputStream.java | 281 final long time = ZipUtil.dosToJavaTime(ZipLong.getValue(lfhBuf, off)); in getNextZipEntry() 318 ZipUtil.setNameAndCommentFromExtraFields(current.entry, fileName, null); in getNextZipEntry() 329 …if (ZipUtil.canHandleEntryData(current.entry) && m != ZipMethod.STORED && m != ZipMethod.DEFLATED)… in getNextZipEntry() 422 return ZipUtil.canHandleEntryData(ze) in canReadEntryData() 444 ZipUtil.checkRequestedFeatures(current.entry); in read()
|
D | ZipFile.java | 426 return ZipUtil.canHandleEntryData(ze); in canReadEntryData() 482 ZipUtil.checkRequestedFeatures(ze); in getInputStream() 682 final long time = ZipUtil.dosToJavaTime(ZipLong.getValue(cfhBuf, off)); 1067 ZipUtil.setNameAndCommentFromExtraFields(ze, nc.name,
|
D | ZipArchiveOutputStream.java | 908 && ZipUtil.canHandleEntryData(zae); in canWriteEntryData() 925 ZipUtil.checkRequestedFeatures(entry.entry); in write() 943 ZipUtil.checkRequestedFeatures(entry.entry); in copyFromZipInputStream() 1092 ZipUtil.toDosTime(calendarInstance, ze.getTime(), buf, LFH_TIME_OFFSET); in createLocalFileHeader() 1270 ZipUtil.toDosTime(calendarInstance, ze.getTime(), buf, CFH_TIME_OFFSET); in createCentralFileHeader()
|
D | X5455_ExtendedTimestamp.java | 535 buf.append(Integer.toBinaryString(ZipUtil.unsignedIntToSignedByte(flags))).append(" "); in toString()
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/arj/ |
D | ArjArchiveEntry.java | 25 import org.apache.commons.compress.archivers.zip.ZipUtil; 97 : ZipUtil.dosToJavaTime(0xFFFFFFFFL & localFileHeader.dateTimeModified); in getLastModifiedDate()
|