Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.swing.text.EditorKit
javax.swing.text.DefaultEditorKit
javax.swing.text.StyledEditorKit
javax.swing.text.rtf.RTFEditorKit
public class RTFEditorKit
extends StyledEditorKit
JEditorPane
s.
Nested Class Summary |
Nested classes/interfaces inherited from class javax.swing.text.StyledEditorKit | |
StyledEditorKit.AlignmentAction , StyledEditorKit.BoldAction , StyledEditorKit.FontFamilyAction , StyledEditorKit.FontSizeAction , StyledEditorKit.ForegroundAction , StyledEditorKit.ItalicAction , StyledEditorKit.StyledTextAction , StyledEditorKit.UnderlineAction |
Nested classes/interfaces inherited from class javax.swing.text.DefaultEditorKit | |
DefaultEditorKit.BeepAction , DefaultEditorKit.CopyAction , DefaultEditorKit.CutAction , DefaultEditorKit.DefaultKeyTypedAction , DefaultEditorKit.InsertBreakAction , DefaultEditorKit.InsertContentAction , DefaultEditorKit.InsertTabAction , DefaultEditorKit.PasteAction |
Field Summary |
Constructor Summary | |
|
Method Summary | |
String |
|
void |
|
void |
Methods inherited from class javax.swing.text.StyledEditorKit | |
clone , createDefaultDocument , createInputAttributes , deinstall , getActions , getCharacterAttributeRun , getInputAttributes , getViewFactory , install |
Methods inherited from class javax.swing.text.DefaultEditorKit | |
createCaret , createDefaultDocument , getActions , getContentType , getViewFactory , read , read , write , write |
Methods inherited from class javax.swing.text.EditorKit | |
clone , createCaret , createDefaultDocument , deinstall , getActions , getContentType , getViewFactory , install , read , read , write , write |
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
public String getContentType()
Returns the MIME content type. In the case of RTFEditorKit this is 'text/rtf'
- Overrides:
- getContentType in interface DefaultEditorKit
- Returns:
- the MIME content type for RTFEditorKit
public void read(InputStream stream, Document doc, int pos) throws IOException, BadLocationException
Reads RTF data fromstream
intodoc
at the specified positionpos
.
- Overrides:
- read in interface DefaultEditorKit
- Parameters:
stream
- theInputStream
from where we read RTF datadoc
- theDocument
into which we read the RTF datapos
- the position where to start
- Throws:
IOException
- if an IO error occursBadLocationException
- if the position is not valid
public void read(Reader reader, Document doc, int pos) throws IOException, BadLocationException
Reads RTF data fromreader
intodoc
at the specified positionpos
.
- Overrides:
- read in interface DefaultEditorKit
- Throws:
IOException
- if an IO error occursBadLocationException
- if the position is not valid