/*
* 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.
*/
/*
* @author Limin Shi
*/
{
public ByteToCharEUC_TW() {
}
throws MalformedInputException
{
firstByte = 0;
badInputLength = 0;
throw new MalformedInputException();
}
reset();
return 0;
}
public void reset() {
firstByte = 0;
}
/**
* Character conversion
*/
{
int inputSize = 0;
char[] c1 = new char[1];
cnsPlane = 3;
throw new ConversionBufferFullException();
char[] outputChar = null;
switch (state) {
case G0:
outputChar = c1;
} else { // Codeset 1
}
break;
case G1:
inputSize = 2;
cnsPlane = 0;
cnsPlane);
} else { // Error
badInputLength = 1;
throw new MalformedInputException();
}
firstByte = 0;
break;
case G2:
// Adjust String array index for plan 15
if (cnsPlane < 15) {
} else {
badInputLength = 2;
throw new MalformedInputException();
}
break;
case G3:
} else { // Error
badInputLength = 2;
throw new MalformedInputException();
}
break;
case G4:
cnsPlane - 1);
} else { // Error
badInputLength = 3;
throw new MalformedInputException();
}
firstByte = 0;
break;
}
byteOff++;
if (outputChar == null) {
if (subMode) { // substitution enabled
outputChar = c1;
} else {
throw new UnknownCharacterException();
}
}
}
}
}
/**
* Return the character set ID
*/
return "EUC_TW";
}
}