Lines Matching refs:enc
49 static void fail(String enc, String msg, int e0, int e1, int b0, int b1)
52 throw new Exception(enc + ": " + msg
63 static void encode(String enc, int byteOrder, boolean markExpected)
67 byte[] b = s.getBytes(enc);
81 fail(enc, "Incorrect or missing byte-order mark",
97 fail(enc, "Incorrect content at index " + j,
104 static void decode(String enc, int byteOrder, boolean markit)
129 String s2 = new String(b, enc);
131 throw new Exception(enc + ": Decode error");
136 String enc = args[0];
145 encode(enc, byteOrder, markExpected);
146 encode(enc, byteOrder, markExpected);
147 decode(enc, byteOrder, markExpected);
148 decode(enc, byteOrder, markExpected);