code: public void writeTo(PacketOutputStream pos) throws IOException {
      pos.write(QUOTE);
      if (length == Long.MAX_VALUE) {
        pos.write(reader, true, noBackslashEscapes);
      } else {
        pos.write(reader, length, true, noBackslashEscapes);
      }
      pos.write(QUOTE);
    }
docs: Write reader to database in text format.
  
  @param pos database outputStream
  @throws IOException if any error occur when reading reader