private void writeName(int prefix, String localName) throws IOException {
   writePrefix(prefix);
   textBuffer.set(localName);
   textBuffer.write(this);
 }
 private void writeName(Name name) throws IOException {
   writePrefix(nsUriIndex2prefixIndex[name.nsUriIndex]);
   localNames[name.localNameIndex].write(this);
 }