/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
public class HKSCS {
private char[][] b2cBmp;
private char[][] b2cSupp;
{
// super(cs, 0.5f, 1.0f);
// need to extends DoubleByte.Decoder so the
// sun.io can use it. this implementation
}
public char decodeSingle(int b) {
return big5Dec.decodeSingle(b);
}
}
}
/* if the b2cSupp is null, the subclass need
to override the methold
if (b2cSupp == null)
return UNMAPPABLE_DECODING;
*/
}
try {
char c = decodeSingle(b1);
if (c == UNMAPPABLE_DECODING) {
return CoderResult.UNDERFLOW;
inSize++;
if (c == UNMAPPABLE_DECODING) {
if (c == UNMAPPABLE_DECODING) {
if (c == UNMAPPABLE_DECODING)
} else {
// supplementary character in u+2xxxx area
outSize = 2;
}
}
}
return CoderResult.OVERFLOW;
if (outSize == 2) {
// supplementary characters
} else {
}
}
return CoderResult.UNDERFLOW;
} finally {
}
}
try {
while (src.hasRemaining()) {
char c = decodeSingle(b1);
if (c == UNMAPPABLE_DECODING) {
return CoderResult.UNDERFLOW;
inSize++;
if (c == UNMAPPABLE_DECODING) {
if (c == UNMAPPABLE_DECODING) {
if (c == UNMAPPABLE_DECODING)
} else {
outSize = 2;
}
}
}
return CoderResult.OVERFLOW;
if (outSize == 2) {
} else {
}
}
return CoderResult.UNDERFLOW;
} finally {
}
}
else
}
{
else
}
}
}
private char[][] c2bBmp;
private char[][] c2bSupp;
char[][] c2bBmp,
char[][] c2bSupp)
{
}
}
if (bb == UNMAPPABLE_ENCODING)
return encodeBig5(ch);
return bb;
}
return UNMAPPABLE_ENCODING;
}
public boolean canEncode(char c) {
return encodeChar(c) != UNMAPPABLE_ENCODING;
}
try {
int inSize = 1;
int bb = encodeChar(c);
if (bb == UNMAPPABLE_ENCODING) {
if (Character.isSurrogate(c)) {
int cp;
if (bb == UNMAPPABLE_ENCODING)
inSize = 2;
} else {
}
}
return CoderResult.OVERFLOW;
} else { // SingleByte
return CoderResult.OVERFLOW;
}
}
return CoderResult.UNDERFLOW;
} finally {
}
}
try {
while (src.hasRemaining()) {
int inSize = 1;
int bb = encodeChar(c);
if (bb == UNMAPPABLE_ENCODING) {
if (Character.isSurrogate(c)) {
int cp;
if (bb == UNMAPPABLE_ENCODING)
inSize = 2;
} else {
}
}
return CoderResult.OVERFLOW;
} else {
return CoderResult.OVERFLOW;
}
}
return CoderResult.UNDERFLOW;
} finally {
}
}
else
}
static {
}
int b2Min = 0x40;
if (s == null)
continue;
for (int i = 0; i < s.length(); i++) {
char c = s.charAt(i);
int hi = c >> 8;
}
}
}
char c = '\ue000'; //first pua character
if (bb != UNMAPPABLE_DECODING) {
int hi = c >> 8;
}
}
c++;
}
}
}
}
}