Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RTFEditorKit  RSS feed

 
Ricky Gentry
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
write
public void write(Writer out,
Document doc,
int pos,
int len)
throws IOException,
BadLocationExceptionWrite content from a document to the given stream as plain text.

Overrides:
write in class DefaultEditorKit
Parameters:
out - The stream to write to
doc - The source for the write.
pos - The location in the document to fetch the content.
len - The amount to write out.
Throws:
IOException - on any I/O error
BadLocationException - if pos represents an invalid location within the document.

It doesn't seem to matter what I put values I use for pos and len, it always writes the entire document to the stream. What do I do? Can someone find another editor kit for rtfs?
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is typically no need to copy-and-paste the Java API docs here. We all can access them from Sun's official site as needed. Can you please post the code that you wrote to use this method? Can you also explain how the behavior differs from what you expected? I think you've already answered this last question, but perhaps you can clarify. The code snippet is probably the most important piece we need to help you, though.

Layne
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!