📄 rtfeditorkit.html
字号:
<DD>Get the MIME type of the data that this kit represents support for. This kit supports the type <code>text/rtf</code>.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/text/DefaultEditorKit.html#getContentType()">getContentType</A></CODE> in class <CODE><A HREF="../../../../javax/swing/text/DefaultEditorKit.html">DefaultEditorKit</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the type</DL></DD></DL><HR><A NAME="read(java.io.InputStream, javax.swing.text.Document, int)"><!-- --></A><H3>read</H3><PRE>public void <B>read</B>(<A HREF="../../../../java/io/InputStream.html">InputStream</A> in, <A HREF="../../../../javax/swing/text/Document.html">Document</A> doc, int pos) throws <A HREF="../../../../java/io/IOException.html">IOException</A>, <A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE><DL><DD>Insert content from the given stream which is expected to be in a format appropriate for this kind of content handler.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/text/DefaultEditorKit.html#read(java.io.InputStream, javax.swing.text.Document, int)">read</A></CODE> in class <CODE><A HREF="../../../../javax/swing/text/DefaultEditorKit.html">DefaultEditorKit</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>in</CODE> - The stream to read from<DD><CODE>doc</CODE> - The destination for the insertion.<DD><CODE>pos</CODE> - The location in the document to place the content.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../java/io/IOException.html">IOException</A></CODE> - on any I/O error<DD><CODE><A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A></CODE> - if pos represents an invalid location within the document.</DL></DD></DL><HR><A NAME="write(java.io.OutputStream, javax.swing.text.Document, int, int)"><!-- --></A><H3>write</H3><PRE>public void <B>write</B>(<A HREF="../../../../java/io/OutputStream.html">OutputStream</A> out, <A HREF="../../../../javax/swing/text/Document.html">Document</A> doc, int pos, int len) throws <A HREF="../../../../java/io/IOException.html">IOException</A>, <A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE><DL><DD>Write content from a document to the given stream in a format appropriate for this kind of content handler.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/text/DefaultEditorKit.html#write(java.io.OutputStream, javax.swing.text.Document, int, int)">write</A></CODE> in class <CODE><A HREF="../../../../javax/swing/text/DefaultEditorKit.html">DefaultEditorKit</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>out</CODE> - The stream to write to<DD><CODE>doc</CODE> - The source for the write.<DD><CODE>pos</CODE> - The location in the document to fetch the content.<DD><CODE>len</CODE> - The amount to write out.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../java/io/IOException.html">IOException</A></CODE> - on any I/O error<DD><CODE><A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A></CODE> - if pos represents an invalid location within the document.</DL></DD></DL><HR><A NAME="read(java.io.Reader, javax.swing.text.Document, int)"><!-- --></A><H3>read</H3><PRE>public void <B>read</B>(<A HREF="../../../../java/io/Reader.html">Reader</A> in, <A HREF="../../../../javax/swing/text/Document.html">Document</A> doc, int pos) throws <A HREF="../../../../java/io/IOException.html">IOException</A>, <A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE><DL><DD>Insert content from the given stream, which will be treated as plain text.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/text/DefaultEditorKit.html#read(java.io.Reader, javax.swing.text.Document, int)">read</A></CODE> in class <CODE><A HREF="../../../../javax/swing/text/DefaultEditorKit.html">DefaultEditorKit</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>in</CODE> - The stream to read from<DD><CODE>doc</CODE> - The destination for the insertion.<DD><CODE>pos</CODE> - The location in the document to place the content.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../java/io/IOException.html">IOException</A></CODE> - on any I/O error<DD><CODE><A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A></CODE> - if pos represents an invalid location within the document.</DL></DD></DL><HR><A NAME="write(java.io.Writer, javax.swing.text.Document, int, int)"><!-- --></A><H3>write</H3><PRE>public void <B>write</B>(<A HREF="../../../../java/io/Writer.html">Writer</A> out, <A HREF="../../../../javax/swing/text/Document.html">Document</A> doc, int pos, int len) throws <A HREF="../../../../java/io/IOException.html">IOException</A>, <A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE><DL><DD>Write content from a document to the given stream as plain text.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/text/DefaultEditorKit.html#write(java.io.Writer, javax.swing.text.Document, int, int)">write</A></CODE> in class <CODE><A HREF="../../../../javax/swing/text/DefaultEditorKit.html">DefaultEditorKit</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>out</CODE> - The stream to write to<DD><CODE>doc</CODE> - The source for the write.<DD><CODE>pos</CODE> - The location in the document to fetch the content.<DD><CODE>len</CODE> - The amount to write out.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../java/io/IOException.html">IOException</A></CODE> - on any I/O error<DD><CODE><A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A></CODE> - if pos represents an invalid location within the document.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/RTFEditorKit.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="RTFEditorKit.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#inner_classes_inherited_from_class_javax.swing.text.StyledEditorKit">INNER</A> | <A HREF="#fields_inherited_from_class_javax.swing.text.DefaultEditorKit">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -