if (doc instanceof HTMLDocument) {  out.write(doc.getText(pos, len)); } else super.write(out, doc, pos, len);
  public void write(Writer out, Document doc, int pos, int len)      throws IOException, BadLocationException  {    // FIXME: Not implemented.  }