public class CharToByteSJIS extends CharToByteJIS0208 {
private char highHalfZoneCode;
public int flush(byte[] var1, int var2, int var3) throws MalformedInputException {
if (this.highHalfZoneCode != 0) {
this.highHalfZoneCode = 0;
super.badInputLength = 0;
throw new MalformedInputException();
} else {
super.byteOff = super.charOff = 0;
return 0;
}
}
public int convert(char[] var1, int var2, int var3, byte[] var4, int var5, int var6) throws MalformedInputException, UnknownCharacterException, ConversionBufferFullException {
byte[] var10 = new byte[2];
super.charOff = var2;
super.byteOff = var5;
if (this.highHalfZoneCode != 0) {
char var16 = this.highHalfZoneCode;
this.highHalfZoneCode = 0;
if (var1[var2] >= '\udc00' && var1[var2] <= '\udfff') {