code: public void writeNullableUTF(String str)
      {
          if (str == null)
              write(NULL_VALUE);
          else
          {
              write(NOT_NULL_VALUE);
              writeUTF(str);
          }
      }
docs: Write a string or null value to the stream