javax.swing.text.rtf
public class RTFEditorKit extends StyledEditorKit
| Constructor Summary | |
|---|---|
| RTFEditorKit()
Constructs a new RTFEditorKit. | |
| Method Summary | |
|---|---|
| String | getContentType()
Returns the MIME content type. |
| void | read(InputStream stream, Document doc, int pos)
Reads RTF data from stream into doc at the
specified position pos.
|
| void | read(Reader reader, Document doc, int pos)
Reads RTF data from reader into doc at the
specified position pos.
|
Returns: the MIME content type for RTFEditorKit
stream into doc at the
specified position pos.
Parameters: stream the {@link InputStream} from where we read RTF data doc the {@link Document} into which we read the RTF data pos the position where to start
Throws: IOException if an IO error occurs BadLocationException if the position is not valid
reader into doc at the
specified position pos.
Parameters: reader the {@link Reader} from where we read RTF data doc the {@link Document} into which we read the RTF data pos the position where to start
Throws: IOException if an IO error occurs BadLocationException if the position is not valid