Searched defs:bos (Results 1 - 10 of 10) sorted by relevance

/libcore/luni/src/test/java/libcore/java/io/
H A DOldByteArrayOutputStreamTest.java34 ByteArrayOutputStream bos = null; field in class:OldByteArrayOutputStreamTest
39 bos = new java.io.ByteArrayOutputStream(100);
40 assertEquals("Test 1: Failed to create stream;", 0, bos.size());
43 bos = new ByteArrayOutputStream(-1);
51 bos = new ByteArrayOutputStream();
53 bos.write(fileString.getBytes(), 0, fileString.length());
55 bos.toString("8859_1").equals(fileString));
57 bos.toString("8859_2").equals(fileString));
60 bos.toString("NotAnEcoding");
69 bos
[all...]
H A DOldDataOutputStreamTest.java34 private ByteArrayOutputStream bos; field in class:OldDataOutputStreamTest
47 BufferedOutputStream buf = new BufferedOutputStream(bos);
52 bos.toByteArray().length == 0);
55 bos.toByteArray().length > 0);
180 dis = new DataInputStream(new ByteArrayInputStream(bos.toByteArray()));
185 bos = new ByteArrayOutputStream();
186 os = new DataOutputStream(bos);
H A DOldFilterOutputStreamTest.java30 java.io.ByteArrayOutputStream bos; field in class:OldFilterOutputStreamTest
44 bos = new ByteArrayOutputStream();
45 os = new FilterOutputStream(bos);
194 if (bos != null)
195 bos.close();
H A DOldDataInputStreamTest.java34 private ByteArrayOutputStream bos; field in class:OldDataInputStreamTest
354 dis = new DataInputStream(new ByteArrayInputStream(bos.toByteArray()));
362 bos = new ByteArrayOutputStream();
363 os = new DataOutputStream(bos);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DByteArrayOutputStreamTest.java35 ByteArrayOutputStream bos = null; field in class:ByteArrayOutputStreamTest
45 bos.close();
55 bos = new ByteArrayOutputStream(100);
56 assertEquals("Failed to create stream", 0, bos.size());
63 bos = new ByteArrayOutputStream();
64 assertEquals("Failed to create stream", 0, bos.size());
80 * java.io.ByteArrayOutputStream bos = new
81 * java.io.ByteArrayOutputStream(); bos.write (fileString.getBytes(), 0,
82 * 100); try { bos.close(); } catch (java.io.IOException e) {
83 * fail("IOException closing stream"); } try { bos
[all...]
H A DFilterOutputStreamTest.java32 ByteArrayOutputStream bos; field in class:FilterOutputStreamTest
44 bos = new ByteArrayOutputStream();
45 os = new FilterOutputStream(bos);
53 bos = new ByteArrayOutputStream();
54 os = new FilterOutputStream(bos);
57 assertEquals("Bytes not written after flush", 500, bos.size());
65 bos = new ByteArrayOutputStream();
66 os = new FilterOutputStream(bos);
69 assertEquals("Bytes not written after flush", 500, bos.size());
77 bos
[all...]
H A DDataOutputStreamTest.java32 private ByteArrayOutputStream bos; field in class:DataOutputStreamTest
237 dis = new DataInputStream(new ByteArrayInputStream(bos.toByteArray()));
245 bos = new ByteArrayOutputStream();
246 os = new DataOutputStream(bos);
H A DPrintStreamTest.java34 ByteArrayOutputStream bos = new ByteArrayOutputStream(); field in class:PrintStreamTest
100 PrintStream os = new PrintStream(bos);
106 os = new PrintStream(bos, true, null);
117 PrintStream os = new PrintStream(bos);
120 assertTrue("Bytes not written", bos.size() > 0);
175 PrintStream os = new PrintStream(bos);
177 bos.close();
185 PrintStream os = new PrintStream(bos);
188 assertEquals("Bytes not written after flush", 501, bos.size());
189 bos
[all...]
H A DDataInputStreamTest.java34 private ByteArrayOutputStream bos; field in class:DataInputStreamTest
617 dis = new DataInputStream(new ByteArrayInputStream(bos.toByteArray()));
625 bos = new ByteArrayOutputStream();
626 os = new DataOutputStream(bos);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
H A DZipOutputStreamTest.java45 ByteArrayOutputStream bos; field in class:ZipOutputStreamTest
112 zis = new ZipInputStream(new ByteArrayInputStream(bos.toByteArray()));
197 zis = new ZipInputStream(new ByteArrayInputStream(bos.toByteArray()));
317 try (ZipInputStream zis = new ZipInputStream(new ByteArrayInputStream(bos.toByteArray()))) {
394 try (ZipInputStream zis = new ZipInputStream(new ByteArrayInputStream(bos.toByteArray()))) {
410 zos = new ZipOutputStream(bos = new ByteArrayOutputStream());

Completed in 101 milliseconds