Home | History | Annotate | Download | only in io

Lines Matching refs:bos

35     ByteArrayOutputStream bos = null;
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.write
84 * (fileString.getBytes(), 0, 100); bos.toByteArray(); fail("Wrote to
93 bos = new java.io.ByteArrayOutputStream();
94 bos.write(fileString.getBytes(), 0, 100);
95 bos.reset();
96 assertEquals("reset failed", 0, bos.size());
103 bos = new java.io.ByteArrayOutputStream();
104 bos.write(fileString.getBytes(), 0, 100);
105 assertEquals("size test failed", 100, bos.size());
106 bos.reset();
107 assertEquals("size test failed", 0, bos.size());
116 bos = new java.io.ByteArrayOutputStream();
117 bos.write(fileString.getBytes(), 0, fileString.length());
118 bytes = bos.toByteArray();
128 ByteArrayOutputStream bos = new ByteArrayOutputStream();
130 bos.write(fileString.getBytes("UTF-8"), 0, fileString.length());
131 assertTrue("Returned incorrect 8859-1 String", bos.toString("8859_1")
134 bos = new ByteArrayOutputStream();
135 bos.write(fileString.getBytes("UTF-8"), 0, fileString.length());
136 assertTrue("Returned incorrect 8859-2 String", bos.toString("8859_2")
144 ByteArrayOutputStream bos = new ByteArrayOutputStream();
145 bos.write(fileString.getBytes(), 0, fileString.length());
146 assertTrue("Returned incorrect String", bos.toString().equals(
155 ByteArrayOutputStream bos = new ByteArrayOutputStream();
156 bos.write(fileString.getBytes(), 0, fileString.length());
158 bos.toString(5).length() == fileString.length());
165 bos = new ByteArrayOutputStream();
166 bos.write('t');
167 byte[] result = bos.toByteArray();
176 ByteArrayOutputStream bos = new ByteArrayOutputStream();
177 bos.write(fileString.getBytes(), 0, 100);
178 byte[] result = bos.toByteArray();
201 ByteArrayOutputStream bos = new ByteArrayOutputStream();
203 bos.write(fileString.getBytes(), 0, 100);
204 bos.writeTo(bos2);