| java.lang.Object | ||||
| ↳ | javax.swing.text.EditorKit | |||
| ↳ | javax.swing.text.DefaultEditorKit | |||
| ↳ | javax.swing.text.StyledEditorKit | |||
| ↳ | javax.swing.text.rtf.RTFEditorKit | |||
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.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
javax.swing.text.DefaultEditorKit
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an RTFEditorKit.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Get the MIME type of the data that this
kit represents support for.
| |||||||||||
Insert content from the given stream which is expected
to be in a format appropriate for this kind of content
handler.
| |||||||||||
Insert content from the given stream, which will be
treated as plain text.
| |||||||||||
Write content from a document to the given stream
as plain text.
| |||||||||||
Write content from a document to the given stream
in a format appropriate for this kind of content handler.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
javax.swing.text.StyledEditorKit
| |||||||||||
From class
javax.swing.text.DefaultEditorKit
| |||||||||||
From class
javax.swing.text.EditorKit
| |||||||||||
From class
java.lang.Object
| |||||||||||
Constructs an RTFEditorKit.
Get the MIME type of the data that this
kit represents support for. This kit supports
the type text/rtf.
Insert content from the given stream which is expected to be in a format appropriate for this kind of content handler.
| in | The stream to read from |
|---|---|
| doc | The destination for the insertion. |
| pos | The location in the document to place the content. |
| IOException | on any I/O error |
|---|---|
| BadLocationException | if pos represents an invalid location within the document. |
Insert content from the given stream, which will be treated as plain text.
| in | The stream to read from |
|---|---|
| doc | The destination for the insertion. |
| pos | The location in the document to place the content. |
| IOException | on any I/O error |
|---|---|
| BadLocationException | if pos represents an invalid location within the document. |
Write content from a document to the given stream as plain text.
| 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. |
| IOException | on any I/O error |
|---|---|
| BadLocationException | if pos represents an invalid location within the document. |
Write content from a document to the given stream in a format appropriate for this kind of content handler.
| 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. |
| IOException | on any I/O error |
|---|---|
| BadLocationException | if pos represents an invalid location within the document. |