Lines Matching defs:ba
151 byte[] ba = new byte[bf.limit()];
152 bf.get(ba, 0, ba.length);
153 return ba;
174 static String testNewString(Charset cs, byte[] ba) throws Throwable {
179 String strSC = new String(ba, cs.name());
180 String strNIO = dec.reset().decode(ByteBuffer.wrap(ba)).toString();
185 strSC = new String(ba, cs);
206 byte[] ba = new byte[str.length() - 2];
207 int n = cae.encode(str.toCharArray(), 0, str.length(), ba);
208 if (n != 6 || !"abAAcd".equals(new String(ba, cs.name())))
212 ba = new byte[str.length()];
213 n = cae.encode(str.toCharArray(), 0, str.length(), ba);
214 if (n != 6 || !"abAAcd".equals(new String(ba, 0, n,
219 ba = new byte[str.length()];
220 n = cae.encode(str.toCharArray(), 0, str.length(), ba);
221 if (n != 8 || !"abABABcd".equals(new String(ba, 0, n,
228 ba = new byte[str.length() - 1];
229 n = cae.encode(str.toCharArray(), 0, str.length(), ba);
230 if (n != 7 || !"abABABc".equals(new String(ba, 0, n, cs.name()))) {