if (length == IsoTextCodecConstants.TRUE1.length()) {
int l = IsoTextCodecConstants.TRUE1.length();
for (int i = 0; i < l; i++) {
int ch = buffer[offset + i];
if (ch < 0) {
throw new IsoTextCodingException();
}
if (ch != IsoTextCodecConstants.TRUE1.charAt(i)
&& ch != IsoTextCodecConstants.TRUE2.charAt(i)) {
throw new IsoTextCodingException();
}
}
return Boolean.TRUE;
} else {
if (length == IsoTextCodecConstants.FALSE1.length()) {
int l = IsoTextCodecConstants.FALSE1.length();
for (int i = 0; i < l; i++) {
int ch = buffer[offset + i];
if (ch < 0) {
throw new IsoTextCodingException();
}
if (ch != IsoTextCodecConstants.FALSE1.charAt(i)
&& ch != IsoTextCodecConstants.FALSE2.charAt(i)) {
throw new IsoTextCodingException();
}
}
return Boolean.FALSE;
} else {
throw new IsoTextCodingException();
}
}
}