This is the default implementation of RTF editing
functionality. The RTF support was not written by the
Swing team. In the future we hope to improve the support
provided.
getContentType()
Get the MIME type of the data that this
kit represents support for.
void
read(InputStream in,
Document doc,
int pos)
Insert content from the given stream which is expected
to be in a format appropriate for this kind of content
handler.
void
read(Reader in,
Document doc,
int pos)
Insert content from the given stream, which will be
treated as plain text.
void
write(OutputStream out,
Document doc,
int pos,
int len)
Write content from a document to the given stream
in a format appropriate for this kind of content handler.
void
write(Writer out,
Document doc,
int pos,
int len)
Write content from a document to the given stream
as plain text.
Methods inherited from class javax.swing.text.StyledEditorKit
Submit a bug or feature For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, California, 94303, U.S.A. All Rights Reserved.