public void read(Reader in, Document document, int offset)
public void read(InputStream in, Document document, int offset)
  public void read(Reader in, Document document, int offset)    throws BadLocationException, IOException    {    BufferedReader reader = new BufferedReader(in);    String line;    StringBuffer content = new StringBuffer();    while ((line = reader.readLine()) != null)      content.append(line);        document.insertString(offset, content.toString(),			  SimpleAttributeSet.EMPTY);    }