Home
last modified time | relevance | path

Searched refs:ZipUtil (Results 1 – 11 of 11) sorted by relevance

/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/
DZipUtilTest.java61 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/
DX7875_NewUnix.java25 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()
DUnrecognizedExtraField.java65 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()
DPKWareExtraHeader.java102 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()
DUnparseableExtraFieldData.java76 return ZipUtil.copy(localFileData); in getLocalFileDataData()
87 ? getLocalFileDataData() : ZipUtil.copy(centralDirectoryData); in getCentralDirectoryData()
DZipUtil.java31 public abstract class ZipUtil { class
158 l = ZipUtil.adjustToLong((int) l); in longToBig()
DZipArchiveInputStream.java281 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()
DZipFile.java426 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,
DZipArchiveOutputStream.java908 && 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()
DX5455_ExtendedTimestamp.java535 buf.append(Integer.toBinaryString(ZipUtil.unsignedIntToSignedByte(flags))).append(" "); in toString()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/arj/
DArjArchiveEntry.java25 import org.apache.commons.compress.archivers.zip.ZipUtil;
97 : ZipUtil.dosToJavaTime(0xFFFFFFFFL & localFileHeader.dateTimeModified); in getLastModifiedDate()