Lines Matching defs:utf
28 * ObjectInputStream consumes at most the expected number of utf
29 * bytes, even if the last byte(s) of the utf string indicate that the
50 byte[] utf = bout.toByteArray();
53 utf[utf.length - 1] = (byte) (0xC0 | rand.nextInt() & 0x1F);
54 checkConsume(utf);
57 utf[utf.length - 1] = (byte) (0xE0 | rand.nextInt() & 0x0F);
58 checkConsume(utf);
60 if (utf.length >= 4) { // don't touch utf length bytes
62 utf[utf.length - 2] = (byte) (0xE0 | rand.nextInt() & 0x0F);
63 utf[utf.length - 1] = (byte) (0x80 | rand.nextInt() & 0x3F);
64 checkConsume(utf);
69 static void checkConsume(byte[] utf) throws Exception {
72 oout.write(utf);