|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjavax.swing.text.EditorKit
javax.swing.text.DefaultEditorKit
javax.swing.text.StyledEditorKit
javax.swing.text.rtf.RTFEditorKit
public class RTFEditorKit
這是對 RTF 編輯功能的預設實作。Swing 團隊未編寫 RTF 支持。將來我們希望改進提供的支持。
| 巢狀類別摘要 |
|---|
| 欄位摘要 |
|---|
| 建構子摘要 | |
|---|---|
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)
將文檔中的內容作為純文本寫入給定的串流。 |
| 從類別 javax.swing.text.StyledEditorKit 繼承的方法 |
|---|
clone, createDefaultDocument, createInputAttributes, deinstall, getActions, getCharacterAttributeRun, getInputAttributes, getViewFactory, install |
| 從類別 javax.swing.text.DefaultEditorKit 繼承的方法 |
|---|
createCaret |
| 從類別 java.lang.Object 繼承的方法 |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 建構子詳細資訊 |
|---|
public RTFEditorKit()
| 方法詳細資訊 |
|---|
public String getContentType()
text/rtf 型別。
DefaultEditorKit 中的 getContentType
public void read(InputStream in,
Document doc,
int pos)
throws IOException,
BadLocationException
DefaultEditorKit 中的 readin - 從中讀取資料的串流doc - 插入的目標。pos - 文檔中存放內容的位置。
IOException - 如果出現任何 I/O 錯誤
BadLocationException - 如果 pos 表示文檔中的無效位置。
public void write(OutputStream out,
Document doc,
int pos,
int len)
throws IOException,
BadLocationException
DefaultEditorKit 中的 writeout - 要向其寫入的串流doc - 寫入的源。pos - 文檔中獲取內容的位置。len - 要寫出的數量。
IOException - 如果出現任何 I/O 錯誤
BadLocationException - 如果 pos 表示文檔中的無效位置。
public void read(Reader in,
Document doc,
int pos)
throws IOException,
BadLocationException
DefaultEditorKit 中的 readin - 從中讀取資料的串流doc - 插入的目標。pos - 文檔中存放內容的位置。
IOException - 如果發生任何 I/O 錯誤
BadLocationException - 如果 pos 表示文檔中的無效位置。
public void write(Writer out,
Document doc,
int pos,
int len)
throws IOException,
BadLocationException
DefaultEditorKit 中的 writeout - 要向其寫入的串流doc - 寫入的源。pos - 文檔中獲取內容的位置。len - 要寫出的數量。
IOException - 如果發生任何 I/O 錯誤
BadLocationException - 如果 pos 表示文檔中的無效位置。
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。