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
49 byte[] utf = bout.toByteArray();
52 utf[utf.length - 1] = (byte) (0xC0 | rand.nextInt() & 0x1F);
53 checkConsume(utf);
56 utf[utf.length - 1] = (byte) (0xE0 | rand.nextInt() & 0x0F);
57 checkConsume(utf);
59 if (utf.length >= 4) { // don't touch utf length bytes
61 utf[utf.length - 2] = (byte) (0xE0 | rand.nextInt() & 0x0F);
62 utf[utf.length - 1] = (byte) (0x80 | rand.nextInt() & 0x3F);
63 checkConsume(utf);
68 static void checkConsume(byte[] utf) throws Exception {
71 oout.write(utf);