public class RTFEditorKit extends StyledEditorKit
StyledEditorKit.AlignmentAction, StyledEditorKit.BoldAction, StyledEditorKit.FontFamilyAction, StyledEditorKit.FontSizeAction, StyledEditorKit.ForegroundAction, StyledEditorKit.ItalicAction, StyledEditorKit.StyledTextAction, StyledEditorKit.UnderlineActionDefaultEditorKit.BeepAction, DefaultEditorKit.CopyAction, DefaultEditorKit.CutAction, DefaultEditorKit.DefaultKeyTypedAction, DefaultEditorKit.InsertBreakAction, DefaultEditorKit.InsertContentAction, DefaultEditorKit.InsertTabAction, DefaultEditorKit.PasteActionbackwardAction, beepAction, beginAction, beginLineAction, beginParagraphAction, beginWordAction, copyAction, cutAction, defaultKeyTypedAction, deleteNextCharAction, deleteNextWordAction, deletePrevCharAction, deletePrevWordAction, 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| コンストラクタ | 説明 |
|---|---|
RTFEditorKit() |
RTFEditorKitを構築します。
|
| 修飾子と型 | メソッド | 説明 |
|---|---|---|
String |
getContentType() |
このキットがサポートするデータのMIMEタイプを返します。
|
void |
read(InputStream in, Document doc, int pos) |
このタイプのコンテンツ・ハンドラに適した形式であると予想されるコンテンツを、指定したストリームから挿入します。
|
void |
read(Reader in, Document doc, int pos) |
指定されたストリームから内容を挿入します。内容はプレーン・テキストとして扱われます。
|
void |
write(OutputStream out, Document doc, int pos, int len) |
このタイプのコンテンツ・ハンドラに適した形式で、ドキュメントからストリームへコンテンツを書き込みます。
|
void |
write(Writer out, Document doc, int pos, int len) |
ドキュメントのコンテンツを、指定されたストリームにプレーン・テキストとして書き込みます。
|
clone, createDefaultDocument, createInputAttributes, deinstall, getActions, getCharacterAttributeRun, getInputAttributes, getViewFactory, installcreateCaretpublic String getContentType()
text/rtfタイプをサポートします。 getContentType、クラスDefaultEditorKitpublic void read(InputStream in, Document doc, int pos) throws IOException, BadLocationException
read、クラスDefaultEditorKitin - 読込み元のストリームdoc - 挿入先。pos - コンテンツを配置するドキュメント内の位置。IOException - 入出力エラーが発生した場合BadLocationException - posがドキュメント内の無効な位置を表す場合。public void write(OutputStream out, Document doc, int pos, int len) throws IOException, BadLocationException
write、クラスDefaultEditorKitout - 書込み先のストリームdoc - 書込み元。pos - コンテンツを取得するドキュメント内の位置。len - 書き出す量。IOException - 入出力エラーが発生した場合BadLocationException - posがドキュメント内の無効な位置を表す場合。public void read(Reader in, Document doc, int pos) throws IOException, BadLocationException
read、クラスDefaultEditorKitin - 読込み元のストリームdoc - 挿入先。pos - コンテンツを配置するドキュメント内の位置。IOException - 入出力エラーが発生した場合BadLocationException - posがドキュメント内の無効な位置を表す場合。public void write(Writer out, Document doc, int pos, int len) throws IOException, BadLocationException
write、クラスDefaultEditorKitout - 書込み先のストリームdoc - 書込み元。pos - コンテンツを取得するドキュメント内の位置。len - 書き出す量。IOException - 入出力エラーが発生した場合BadLocationException - posがドキュメント内の無効な位置を表す場合。 バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。