public int getUTF8Length(long id) {
int record = getUTF8RecordID(id);
if (record < 0)
return record;
IHProfRecord rec = file.getRecord(record);
if (rec == null)
return -2;
if (rec instanceof IUTF8HProfRecord) {
IUTF8HProfRecord utf8record = (IUTF8HProfRecord) rec;
return utf8record.getCharacters().length;