Home
last modified time | relevance | path

Searched refs:ZipMethod (Results 1 – 10 of 10) sorted by relevance

/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/
DZipMethod.java32 public enum ZipMethod { enum
180 private static final Map<Integer, ZipMethod> codeToEnum;
183 final Map<Integer, ZipMethod> cte = new HashMap<>();
184 for (final ZipMethod method : values()) {
190 private ZipMethod() { in ZipMethod() method in ZipMethod
197 ZipMethod(final int code) { in ZipMethod() method in ZipMethod
220 public static ZipMethod getMethodByCode(final int code) { in getMethodByCode()
DZipUtil.java332 || entry.getMethod() == ZipMethod.UNSHRINKING.getCode() in supportsMethodOf()
333 || entry.getMethod() == ZipMethod.IMPLODING.getCode() in supportsMethodOf()
335 || entry.getMethod() == ZipMethod.ENHANCED_DEFLATED.getCode() in supportsMethodOf()
336 || entry.getMethod() == ZipMethod.BZIP2.getCode(); in supportsMethodOf()
351 final ZipMethod m = ZipMethod.getMethodByCode(ze.getMethod()); in checkRequestedFeatures()
DUnsupportedZipFeatureException.java54 public UnsupportedZipFeatureException(final ZipMethod method, in UnsupportedZipFeatureException()
DParallelScatterZipCreator.java184 if (method == ZipMethod.UNKNOWN_CODE) { in createCallable()
DZipArchiveEntry.java116 private int method = ZipMethod.UNKNOWN_CODE;
DZipArchiveOutputStream.java906 return zae.getMethod() != ZipMethod.IMPLODING.getCode() in canWriteEntryData()
907 && zae.getMethod() != ZipMethod.UNSHRINKING.getCode() in canWriteEntryData()
DZipFile.java490 switch (ZipMethod.getMethodByCode(ze.getMethod())) { in getInputStream()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/
DZipArchiveInputStreamTest.java140 assertEquals("method", ZipMethod.UNSHRINKING.getCode(), entry.getMethod()); in testUnshrinkEntry()
151 assertEquals("method", ZipMethod.UNSHRINKING.getCode(), entry.getMethod()); in testUnshrinkEntry()
233 assertEquals(ZipMethod.ENHANCED_DEFLATED.getCode(), e.getMethod()); in readDeflate64CompressedStreamWithDataDescriptor()
334 e.setMethod(ZipMethod.DEFLATED.getCode()); in properlyMarksEntriesAsUnreadableIfUncompressedSizeIsUnknown()
336 e.setMethod(ZipMethod.ENHANCED_DEFLATED.getCode()); in properlyMarksEntriesAsUnreadableIfUncompressedSizeIsUnknown()
338 e.setMethod(ZipMethod.BZIP2.getCode()); in properlyMarksEntriesAsUnreadableIfUncompressedSizeIsUnknown()
DExplodeSupportTest.java44 assertEquals("method", ZipMethod.IMPLODING.getCode(), entry.getMethod()); in testArchiveWithImplodeCompression()
76 assertEquals("method", ZipMethod.IMPLODING.getCode(), entry.getMethod()); in testZipStreamWithImplodeCompression()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/
DZipTestCase.java46 import org.apache.commons.compress.archivers.zip.ZipMethod;
207 assertEquals("method", ZipMethod.TOKENIZATION.getCode(), entry.getMethod()); in testSupportedCompressionMethod()
225 assertEquals("method", ZipMethod.TOKENIZATION.getCode(), entry.getMethod()); in testSkipEntryWithUnsupportedCompressionMethod()