Searched refs:GeneralPurposeBit (Results 1 – 6 of 6) sorted by relevance
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/ |
D | GeneralPurposeBitTest.java | 32 assertFalse(new GeneralPurposeBit().usesDataDescriptor()); in testDefaults() 33 assertFalse(new GeneralPurposeBit().usesUTF8ForNames()); in testDefaults() 34 assertFalse(new GeneralPurposeBit().usesEncryption()); in testDefaults() 35 assertFalse(new GeneralPurposeBit().usesStrongEncryption()); in testDefaults() 37 assertTrue(Arrays.equals(b, new GeneralPurposeBit().encode())); in testDefaults() 42 assertFalse(GeneralPurposeBit.parse(new byte[2], 0) in testParseEdgeCases() 44 assertFalse(GeneralPurposeBit.parse(new byte[2], 0) in testParseEdgeCases() 46 assertFalse(GeneralPurposeBit.parse(new byte[2], 0) in testParseEdgeCases() 48 assertFalse(GeneralPurposeBit.parse(new byte[2], 0) in testParseEdgeCases() 50 assertTrue(GeneralPurposeBit.parse(new byte[] {(byte) 255, (byte) 255}, in testParseEdgeCases() [all …]
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/ |
D | GeneralPurposeBit.java | 27 public final class GeneralPurposeBit implements Cloneable { class 79 public GeneralPurposeBit() { in GeneralPurposeBit() method in GeneralPurposeBit 204 public static GeneralPurposeBit parse(final byte[] data, final int offset) { in parse() 206 final GeneralPurposeBit b = new GeneralPurposeBit(); in parse() 226 if (!(o instanceof GeneralPurposeBit)) { in equals() 229 final GeneralPurposeBit g = (GeneralPurposeBit) o; in equals()
|
D | ZipArchiveEntry.java | 140 private GeneralPurposeBit gpb = new GeneralPurposeBit(); 202 final GeneralPurposeBit other = entry.getGeneralPurposeBit(); in ZipArchiveEntry() 204 (GeneralPurposeBit) other.clone()); in ZipArchiveEntry() 817 public GeneralPurposeBit getGeneralPurposeBit() { in getGeneralPurposeBit() 826 public void setGeneralPurposeBit(final GeneralPurposeBit b) { in setGeneralPurposeBit()
|
D | ZipArchiveOutputStream.java | 144 public static final int EFS_FLAG = GeneralPurposeBit.UFT8_NAMES_FLAG; 1086 …final GeneralPurposeBit generalPurposeBit = getGeneralPurposeBits(!encodable && fallbackToUTF8, da… in createLocalFileHeader() 1480 …private GeneralPurposeBit getGeneralPurposeBits(final boolean utfFallback, boolean usesDataDescrip… in getGeneralPurposeBits() 1481 final GeneralPurposeBit b = new GeneralPurposeBit(); in getGeneralPurposeBits()
|
D | ZipFile.java | 666 final GeneralPurposeBit gpFlag = GeneralPurposeBit.parse(cfhBuf, off);
|
D | ZipArchiveInputStream.java | 270 final GeneralPurposeBit gpFlag = GeneralPurposeBit.parse(lfhBuf, off); in getNextZipEntry()
|