public class HTMLWriter extends 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フォーム要素のコンテンツを書き出します。 | 
decrIndent, getCanWrapLines, getCurrentLineLength, getDocument, getElementIterator, getEndOffset, getIndentLevel, getIndentSpace, getLineLength, getLineSeparator, getStartOffset, getText, getWriter, incrIndent, indent, inRange, isLineEmpty, setCanWrapLines, setCurrentLineLength, setIndentSpace, setLineLength, setLineSeparator, write, write, writepublic HTMLWriter(Writer w, HTMLDocument doc)
w - Writerdoc - HTMLDocumentpublic HTMLWriter(Writer w, HTMLDocument doc, int pos, int len)
w - Writerdoc - HTMLDocumentpos - コンテンツを取得するドキュメントの位置len - 書き出す量public void write()
           throws IOException,
                  BadLocationException
write、クラス: AbstractWriterIOException - 入出力エラーが発生した場合BadLocationException - posがドキュメント内の無効な位置を表す場合。protected void writeAttributes(AttributeSet attr) throws IOException
writeAttributes、クラス: AbstractWriterattr - AttributeSetIOException - 入出力エラーが発生した場合protected void emptyTag(Element elem) throws BadLocationException, IOException
elem - ElementIOException - 入出力エラーが発生した場合BadLocationException - posがドキュメント内の無効な位置を表す場合。protected boolean isBlockTag(AttributeSet attr)
attr - AttributeSetprotected void startTag(Element elem) throws IOException, BadLocationException
elem - ElementIOException - 入出力エラーが発生した場合BadLocationExceptionprotected void textAreaContent(AttributeSet attr) throws BadLocationException, IOException
attr - AttributeSetIOException - 入出力エラーが発生した場合BadLocationException - posがドキュメント内の無効な位置を表す場合。protected void text(Element elem) throws BadLocationException, IOException
text、クラス: AbstractWriterelem - 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
writeLineSeparator、クラス: AbstractWriterIOExceptionprotected void output(char[] chars,
                      int start,
                      int length)
               throws IOException
super.outputが呼び出されます。output、クラス: AbstractWriterIOException バグまたは機能を送信 
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
 Copyright© 1993, 2014, Oracle and/or its affiliates. All rights reserved.