code: public void addString(String s) throws IOException
      {
          if (s==null)
          {
              addInt(0xFFFF);
              return;
          }
  
          if (_byteWriter==null)
              _byteWriter=new ByteArrayISO8859Writer(_buf);
  
          int p=_bytes+2;
          _byteWriter.setLength(p);
          _byteWriter.write(s);
          int l=_byteWriter.size()-p;
  
          addInt(l);
          _bytes+=l;
          _buf[_bytes++]=(byte)0;
      }
docs: /* ------------------------------------------------------------