@Override
 protected int getDataSize() {
   if (_name == null) {
     return BASE_SIZE;
   }
   return BASE_SIZE
       + 1 // unicode flag
       + _name.length() * (StringUtil.hasMultibyte(_name) ? 2 : 1);
 }
Exemple #2
0
 /** Sets the string represented by this record. */
 public void setString(String string) {
   _text = string;
   _is16bitUnicode = StringUtil.hasMultibyte(string);
 }