|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Object
|
+--javax.swing.text.AbstractWriter
|
+--javax.swing.text.html.HTMLWriter
HTMLDocument のライターです。
| クラス javax.swing.text.AbstractWriter から継承したフィールド |
NEWLINE |
| コンストラクタの概要 | |
HTMLWriter(Writer w,
HTMLDocument doc)
新しい HTMLWriter を作成します。 |
|
HTMLWriter(Writer w,
HTMLDocument doc,
int pos,
int len)
新しい HTMLWriter を作成します。 |
|
| メソッドの概要 | |
protected void |
closeOutUnwantedEmbeddedTags(AttributeSet attr)
属性セットおよびタグベクタに格納された各タグを検索します。 |
protected void |
comment(Element elem)
コメントを書き出します。 |
protected void |
emptyTag(Element elem)
すべての空要素 (対応する終了タグのないタグすべて) を書き出します。 |
protected void |
endTag(Element elem)
要素の終了タグを書き出します。 |
protected boolean |
isBlockTag(AttributeSet attr)
要素に対応する HTML タグが block タグかどうかを判定します。 |
protected boolean |
matchNameAttribute(AttributeSet attr,
HTML.Tag tag)
StyleConstants.NameAttribute がパラメータとして渡されるタグに等しい場合は true を返します。 |
protected void |
output(char[] chars,
int start,
int length)
< を < へなどの文字エントリをマッピングするためにオーバーライドされます。 |
protected void |
selectContent(AttributeSet attr)
フォーム要素の SELECT のコンテンツを書き出します。 |
protected void |
startTag(Element elem)
要素の開始タグを書き出します。 |
protected boolean |
synthesizedElement(Element elem)
要素が合成要素の場合は true を返します。 |
protected void |
text(Element elem)
テキストを書き出します。 |
protected void |
textAreaContent(AttributeSet attr)
フォーム要素の TEXTAREA に格納されているテキストを書き出します。 |
void |
write()
要素ツリーで反復され、すべてのタグとその属性の書き込みを制御します。 |
protected void |
writeAttributes(AttributeSet attr)
属性セットを書き出します。 |
protected void |
writeEmbeddedTags(AttributeSet attr)
AttributeSet で組み込みタグを検索してそれを書き出します。 |
protected void |
writeLineSeparator()
行区切り文字を書き込みます。 |
protected void |
writeOption(Option option)
フォーム要素の Option のコンテンツを書き出します。 |
| クラス javax.swing.text.AbstractWriter から継承したメソッド |
decrIndent, getCanWrapLines, getCurrentLineLength, getDocument, getElementIterator, getEndOffset, getIndentLevel, getIndentSpace, getLineLength, getLineSeparator, getStartOffset, getText, getWriter, incrIndent, indent, inRange, isLineEmpty, setCanWrapLines, setCurrentLineLength, setIndentSpace, setLineLength, setLineSeparator, write, write, write |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
public HTMLWriter(Writer w,
HTMLDocument doc)
w - Writerdoc - HTMLDocument
public HTMLWriter(Writer w,
HTMLDocument doc,
int pos,
int len)
w - Writerdoc - HTMLDocumentpos - コンテンツを取得するドキュメントの位置len - 書き出す量| メソッドの詳細 |
public void write()
throws IOException,
BadLocationException
AbstractWriter 内の writeIOException - 入出力エラーが発生した場合BadLocationException - pos がドキュメント内の無効な位置を示す場合
protected void writeAttributes(AttributeSet attr)
throws IOException
AbstractWriter 内の writeAttributesattr - AttributeSetIOException - 入出力エラーが発生した場合
protected void emptyTag(Element elem)
throws BadLocationException,
IOException
elem - ElementIOException - 入出力エラーが発生した場合BadLocationException - pos がドキュメント内の無効な位置を示す場合protected boolean isBlockTag(AttributeSet attr)
attr - AttributeSet
protected void startTag(Element elem)
throws IOException,
BadLocationException
elem - ElementIOException - 入出力エラーが発生した場合
protected void textAreaContent(AttributeSet attr)
throws BadLocationException,
IOException
attr - AttributeSetIOException - 入出力エラーが発生した場合BadLocationException - pos がドキュメント内の無効な位置を示す場合
protected void text(Element elem)
throws BadLocationException,
IOException
AbstractWriter 内の textelem - ElementIOException - 入出力エラーが発生した場合BadLocationException - pos がドキュメント内の無効な位置を示す場合
protected void selectContent(AttributeSet attr)
throws IOException
attr - フォーム要素に関連した AttributeSetIOException - 入出力エラーが発生した場合
protected void writeOption(Option option)
throws IOException
option - OptionIOException - 入出力エラーが発生した場合
protected void endTag(Element elem)
throws IOException
elem - ElementIOException - 入出力エラーが発生した場合
protected void comment(Element elem)
throws BadLocationException,
IOException
elem - ElementIOException - 入出力エラーが発生した場合BadLocationException - pos がドキュメント内の無効な位置を示す場合protected boolean synthesizedElement(Element elem)
protected boolean matchNameAttribute(AttributeSet attr,
HTML.Tag tag)
protected void writeEmbeddedTags(AttributeSet attr)
throws IOException
IOException - 入出力エラーが発生した場合
protected void closeOutUnwantedEmbeddedTags(AttributeSet attr)
throws IOException
IOException - 入出力エラーが発生した場合
protected void writeLineSeparator()
throws IOException
AbstractWriter 内の writeLineSeparator
protected void output(char[] chars,
int start,
int length)
throws IOException
super.output が呼び出されます。AbstractWriter 内の output
|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Java、Java 2D、JDBC は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.