Searched refs:zos (Results 1 – 8 of 8) sorted by relevance
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | ZipOutputStreamTest.java | 47 ZipOutputStream zos; field in ZipOutputStreamTest 59 zos.putNextEntry(new ZipEntry("XX")); in test_close() 60 zos.closeEntry(); in test_close() 61 zos.close(); in test_close() 64 ZipOutputStream zos = new ZipOutputStream(new ByteArrayOutputStream()); in test_close() local 65 zos.putNextEntry(new ZipEntry("myFile")); in test_close() 66 zos.close(); in test_close() 67 zos.close(); // Should be a no-op in test_close() 76 zos.putNextEntry(ze); in test_closeEntry() 77 zos.write("Hello World".getBytes("UTF-8")); in test_closeEntry() [all …]
|
D | ZipInputStreamTest.java | 59 ZipOutputStream zos = new ZipOutputStream(bos); in setUp() local 61 zos.putNextEntry(entry); in setUp() 62 zos.write(dataBytes); in setUp() 63 zos.closeEntry(); in setUp() 64 zos.close(); in setUp()
|
/libcore/luni/src/test/java/libcore/dalvik/system/ |
D | ZipPathValidatorTest.java | 116 ZipOutputStream zos = new ZipOutputStream(bos); in testZipInputStreamCallback() local 118 zos.putNextEntry(entry); in testZipInputStreamCallback() 119 zos.write(new byte[2]); in testZipInputStreamCallback() 120 zos.closeEntry(); in testZipInputStreamCallback() 121 zos.close(); in testZipInputStreamCallback()
|
/libcore/ojluni/src/test/java/util/zip/ |
D | TestExtraTime.java | 124 ZipOutputStream zos = new ZipOutputStream(baos); in test0() local 132 zos.putNextEntry(ze); in test0() 133 zos.write(new byte[] { 1,2 ,3, 4}); in test0() 140 zos.putNextEntry(ze); in test0() 142 zos.close(); in test0() 293 try (ZipOutputStream zos = new ZipOutputStream(baos)) { in testTagOnlyHandling() argument 296 zos.putNextEntry(ze); in testTagOnlyHandling() 297 zos.write(new byte[] { 1,2 ,3, 4}); in testTagOnlyHandling() 335 try (ZipOutputStream zos = new ZipOutputStream(baos)) { in testNullMtime() argument 341 zos.putNextEntry(ze); in testNullMtime() [all …]
|
D | TestLocalTime.java | 79 ZipOutputStream zos = new ZipOutputStream(baos); in getBytes() local 83 zos.putNextEntry(ze); in getBytes() 84 zos.write(new byte[] { 1, 2, 3, 4}); in getBytes() 85 zos.close(); in getBytes()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | OldZipInputStreamTest.java | 45 ZipOutputStream zos = new ZipOutputStream(bos); in setUp() local 47 zos.putNextEntry(entry); in setUp() 48 zos.write(dataBytes); in setUp() 49 zos.closeEntry(); in setUp() 50 zos.close(); in setUp()
|
/libcore/ojluni/src/test/java/util/zip/ZipFile/ |
D | TestCleaner.java | 115 var zos = new ZipOutputStream(fos)) { in openAndCloseZipFile() 116 zos.putNextEntry(new ZipEntry("hello")); in openAndCloseZipFile() 117 zos.write("hello".getBytes(US_ASCII)); in openAndCloseZipFile() 118 zos.closeEntry(); in openAndCloseZipFile()
|
D | Zip64SizeTest.java | 118 ZipOutputStream zos = new ZipOutputStream(fos)) { in createZipFile() 126 zos.putNextEntry(zipEntry); in createZipFile() 130 zos.write(bytes, 0, length); in createZipFile()
|