152153154155156157158159160161162
targetArray[targetIdx] = (byte) ('?' & 0x7f); targetIdx += 1; } else if (EncodingErrorType.FAIL.equals(errorHandling)) { throw new EncodingException(); } } } buffer.setCursor(targetIdx);
5354555657585960
} catch (UnsupportedEncodingException e) { // this should not happen, as the encodings should have been checked by // the system already ... throw new EncodingException("Failed to encode the string: " + e.getMessage()); } }
96979899100101102103104
} catch (UnsupportedEncodingException e) { // this should not happen, as the encodings should have been checked by // the system already ... throw new EncodingException("Failed to encode the string: " + e.getMessage()); } return buffer; }
targetArray[targetIdx] = (byte) ('?' & 0xff); targetIdx += 1; } else if (EncodingErrorType.FAIL.equals(errorHandling)) { throw new EncodingException(); } } } buffer.setCursor(targetIdx);
6566676869707172
108109110111112113114115116
163164165166167168169170171172173