src/share/classes/sun/nio/cs/SingleByte.java
Print this page
*** 105,115 ****
return decodeArrayLoop(src, dst);
else
return decodeBufferLoop(src, dst);
}
! private final char decode(int b) {
return b2c[b + 128];
}
private char repl = '\uFFFD';
protected void implReplaceWith(String newReplacement) {
--- 105,115 ----
return decodeArrayLoop(src, dst);
else
return decodeBufferLoop(src, dst);
}
! public final char decode(int b) {
return b2c[b + 128];
}
private char repl = '\uFFFD';
protected void implReplaceWith(String newReplacement) {
*** 219,229 ****
return encodeArrayLoop(src, dst);
else
return encodeBufferLoop(src, dst);
}
! private final int encode(char ch) {
char index = c2bIndex[ch >> 8];
if (index == UNMAPPABLE_ENCODING)
return UNMAPPABLE_ENCODING;
return c2b[index + (ch & 0xff)];
}
--- 219,229 ----
return encodeArrayLoop(src, dst);
else
return encodeBufferLoop(src, dst);
}
! public final int encode(char ch) {
char index = c2bIndex[ch >> 8];
if (index == UNMAPPABLE_ENCODING)
return UNMAPPABLE_ENCODING;
return c2b[index + (ch & 0xff)];
}