Searched refs:bos (Results 1 - 25 of 43) sorted by relevance

12

/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/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 DBufferedOutputStreamTest.java150 BufferedOutputStream bos = new BufferedOutputStream(mos, 3);
151 bos.write("a".getBytes());
152 bos.write("bcde".getBytes());
156 bos = new BufferedOutputStream(mos, 3);
157 bos.write("ab".getBytes());
158 bos.write("cd".getBytes());
166 OutputStream bos = new BufferedOutputStream(new ByteArrayOutputStream());
171 bos.write(nullByteArray, -1, -1);
178 bos.write(nullByteArray, -1, 0);
185 bos
[all...]
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);
116 PrintStream os = new PrintStream(bos);
119 assertTrue("Bytes not written", bos.size() > 0);
174 PrintStream os = new PrintStream(bos);
176 bos.close();
184 PrintStream os = new PrintStream(bos);
187 assertEquals("Bytes not written after flush", 501, bos.size());
188 bos
[all...]
H A DObjectOutputStream2Test.java47 ByteArrayOutputStream bos = new ByteArrayOutputStream();
48 ObjectOutputStream os = new ObjectOutputStream(bos);
52 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
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 DDataInputStreamTest.java33 private ByteArrayOutputStream bos; field in class:DataInputStreamTest
568 dis = new DataInputStream(new ByteArrayInputStream(bos.toByteArray()));
576 bos = new ByteArrayOutputStream();
577 os = new DataOutputStream(bos);
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/util/
H A DEnvironmentHelper.java37 ByteArrayOutputStream bos = null;
39 bos = new ByteArrayOutputStream();
40 p.store(bos, "");
41 return new ByteArrayInputStream(bos.toByteArray());
47 bos.close();
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
H A DDigestOutputStreamTest.java148 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN);
149 DigestOutputStream dos = new DigestOutputStream(bos, md);
155 bos.toByteArray()));
181 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN);
182 DigestOutputStream dos = new DigestOutputStream(bos, md);
193 bos.toByteArray()));
266 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN);
267 DigestOutputStream dos = new DigestOutputStream(bos, null);
276 bos.toByteArray()));
290 ByteArrayOutputStream bos
[all...]
/external/javassist/src/test/test/javassist/proxy/
H A DProxySerializationTest.java36 ByteArrayOutputStream bos = new ByteArrayOutputStream();
37 ObjectOutputStream out = new ObjectOutputStream(bos);
40 byte[] bytes = bos.toByteArray();
63 ByteArrayOutputStream bos = new ByteArrayOutputStream();
64 ProxyObjectOutputStream out = new ProxyObjectOutputStream(bos);
67 byte[] bytes = bos.toByteArray();
/external/jmonkeyengine/engine/src/jogg/com/jme3/audio/plugins/
H A DUncachedOggStream.java50 private boolean bos = false; field in class:UncachedOggStream
61 while (!bos){
78 bos = true;
H A DCachedOggStream.java57 private boolean bos = false; field in class:CachedOggStream
116 bos = true;
/external/apache-harmony/support/src/test/java/tests/util/
H A DSerializationTester.java71 ByteArrayOutputStream bos = new ByteArrayOutputStream();
72 ObjectOutputStream oos = new ObjectOutputStream(bos);
76 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
/external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/
H A DZipOutputStreamTest.java34 ByteArrayOutputStream bos; field in class:ZipOutputStreamTest
51 zos = new ZipOutputStream(bos);
109 zis = new ZipInputStream(new ByteArrayInputStream(bos.toByteArray()));
185 zis = new ZipInputStream(new ByteArrayInputStream(bos.toByteArray()));
283 zos = new ZipOutputStream(bos = new ByteArrayOutputStream());
H A DZipInputStreamTest.java53 ByteArrayOutputStream bos = new ByteArrayOutputStream();
54 ZipOutputStream zos = new ZipOutputStream(bos);
60 zipBytes = bos.toByteArray();
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/misc/
H A DStats.java176 BufferedOutputStream bos = new BufferedOutputStream(fos);
177 PrintStream ps = new PrintStream(bos);
180 bos.close();
/external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/
H A DSealedObjectTest.java53 ByteArrayOutputStream bos = new ByteArrayOutputStream();
54 ObjectOutputStream oos = new ObjectOutputStream(bos);
58 bos.toByteArray()));
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/
H A DKeyStore_Impl3Test.java136 ByteArrayOutputStream bos = new ByteArrayOutputStream();
145 kss[i].store(bos, null);
147 kss[i].store(bos, pwd);
148 ByteArrayInputStream bis = new ByteArrayInputStream(bos
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
H A DLogTest.java125 final ByteArrayOutputStream bos = new ByteArrayOutputStream();
128 ShadowLog.stream = new PrintStream(bos);
130 assertThat(new String(bos.toByteArray()), equalTo("D/tag: msg\n"));
133 assertTrue(new String(bos.toByteArray()).contains("RuntimeException"));
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
H A DGrammarSerializerFoo.java61 BufferedOutputStream bos = new BufferedOutputStream(fos);
62 out = new DataOutputStream(bos);
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/
H A DURLConnectionTest.java805 ByteArrayOutputStream bos = new ByteArrayOutputStream();
808 bos.write(new byte[] { (byte) 0xEF, (byte) 0xBB, (byte) 0xBF });
811 bos.write(new byte[] { (byte) 0xFE, (byte) 0xFF });
814 bos.write(new byte[] { (byte) 0xFF, (byte) 0xFE });
817 bos.write(new byte[] { (byte) 0x00, (byte) 0x00, (byte) 0xFE,
821 bos.write(new byte[] { (byte) 0xFF, (byte) 0xFE, (byte) 0x00,
825 bos.write(text.getBytes(enc));
826 return bos.toByteArray();
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.apache.ant_1.7.1.v20090120-1145/lib/
H A Dant-antlr.jar ... io.File workingdir private java.io.ByteArrayOutputStream bos private boolean debug private static final org.apache. ...
/external/antlr/antlr-3.4/antlr-ant/main/antlr3-task/antlr3-src/org/apache/tools/ant/antlr/
H A DANTLR3.java93 private ByteArrayOutputStream bos = new ByteArrayOutputStream(); field in class:ANTLR3
451 bos.close();
461 Matcher m = p.matcher(bos.toString());
627 bos.close();
651 Matcher m = p.matcher(bos.toString());
760 psh = new PumpStreamHandler(out, bos);
762 psh = new PumpStreamHandler(out, new TeeOutputStream(err, bos));
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/
H A DConsoleHandlerTest.java353 ByteArrayOutputStream bos = new ByteArrayOutputStream();
354 System.setErr(new PrintStream(bos));
367 assertTrue(bos.toString().indexOf("testPublish_Record1") >= 0);
372 assertTrue(bos.toString().indexOf("testPublish_Record2") >= 0);
/external/antlr/antlr-3.4/antlr-ant/main/antlr3-task/
H A Dantlr3.jar ... io.File workingdir private java.io.ByteArrayOutputStream bos private boolean debug private boolean report private boolean print private ...

Completed in 525 milliseconds

12