public class RTFEditorKit extends javax.swing.text.StyledEditorKit
JEditorPanes.javax.swing.text.StyledEditorKit.AlignmentAction, javax.swing.text.StyledEditorKit.BoldAction, javax.swing.text.StyledEditorKit.FontFamilyAction, javax.swing.text.StyledEditorKit.FontSizeAction, javax.swing.text.StyledEditorKit.ForegroundAction, javax.swing.text.StyledEditorKit.ItalicAction, javax.swing.text.StyledEditorKit.StyledTextAction, javax.swing.text.StyledEditorKit.UnderlineActionjavax.swing.text.DefaultEditorKit.BeepAction, javax.swing.text.DefaultEditorKit.CopyAction, javax.swing.text.DefaultEditorKit.CutAction, javax.swing.text.DefaultEditorKit.DefaultKeyTypedAction, javax.swing.text.DefaultEditorKit.InsertBreakAction, javax.swing.text.DefaultEditorKit.InsertContentAction, javax.swing.text.DefaultEditorKit.InsertTabAction, javax.swing.text.DefaultEditorKit.PasteActionbackwardAction, beepAction, beginAction, beginLineAction, beginParagraphAction, beginWordAction, copyAction, cutAction, defaultKeyTypedAction, deleteNextCharAction, deletePrevCharAction, downAction, endAction, endLineAction, EndOfLineStringProperty, endParagraphAction, endWordAction, forwardAction, insertBreakAction, insertContentAction, insertTabAction, nextWordAction, pageDownAction, pageUpAction, pasteAction, previousWordAction, readOnlyAction, selectAllAction, selectionBackwardAction, selectionBeginAction, selectionBeginLineAction, selectionBeginParagraphAction, selectionBeginWordAction, selectionDownAction, selectionEndAction, selectionEndLineAction, selectionEndParagraphAction, selectionEndWordAction, selectionForwardAction, selectionNextWordAction, selectionPreviousWordAction, selectionUpAction, selectLineAction, selectParagraphAction, selectWordAction, upAction, writableAction| Constructor and Description |
|---|
RTFEditorKit()
Constructs a new RTFEditorKit.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContentType()
Returns the MIME content type.
|
void |
read(java.io.InputStream stream,
javax.swing.text.Document doc,
int pos)
Reads RTF data from
stream into doc at the
specified position pos. |
void |
read(java.io.Reader reader,
javax.swing.text.Document doc,
int pos)
Reads RTF data from
reader into doc at the
specified position pos. |
public RTFEditorKit()
public java.lang.String getContentType()
getContentType in class javax.swing.text.DefaultEditorKitpublic void read(java.io.InputStream stream, javax.swing.text.Document doc, int pos) throws java.io.IOException, javax.swing.text.BadLocationException
stream into doc at the
specified position pos.read in class javax.swing.text.DefaultEditorKitstream - the InputStream from where we read RTF datadoc - the Document into which we read the RTF datapos - the position where to startjava.io.IOException - if an IO error occursjavax.swing.text.BadLocationException - if the position is not validpublic void read(java.io.Reader reader, javax.swing.text.Document doc, int pos) throws java.io.IOException, javax.swing.text.BadLocationException
reader into doc at the
specified position pos.read in class javax.swing.text.DefaultEditorKitreader - the Reader from where we read RTF datadoc - the Document into which we read the RTF datapos - the position where to startjava.io.IOException - if an IO error occursjavax.swing.text.BadLocationException - if the position is not valid