{
if (listener != null)
listener.log("reading string with encoding",
getCharacterEncodingFullName(charEncodingCode));
UnicodeMetrics unicodeMetrics = UnicodeMetrics
.getInstance(charEncodingCode);
int unicodeMetricsEnd = unicodeMetrics.findEndWithoutTerminator(bytes,
start);
int unicodeMetricsLength = unicodeMetricsEnd - start;
String charsetName = getCharacterEncodingName(charEncodingCode);
return new String(bytes, start, unicodeMetricsLength, charsetName);