Home
last modified time | relevance | path

Searched refs:zos (Results 1 – 8 of 8) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DZipOutputStreamTest.java47 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 …]
DZipInputStreamTest.java59 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/
DZipPathValidatorTest.java116 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/
DTestExtraTime.java124 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 …]
DTestLocalTime.java79 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/
DOldZipInputStreamTest.java45 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/
DTestCleaner.java115 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()
DZip64SizeTest.java118 ZipOutputStream zos = new ZipOutputStream(fos)) { in createZipFile()
126 zos.putNextEntry(zipEntry); in createZipFile()
130 zos.write(bytes, 0, length); in createZipFile()