public interface HTMLReaderTarget
HTMLReader| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
append(Text text)
Appends the specified text into the target.
|
void |
close()
Closes (Finalizes) this target.
|
TextAttachment |
getAttachmentAt(int index)
Returns the text attachment at the specified index in the data written.
|
char |
getChar(int index)
Returns the character at the specified index in the data written.
|
HTMLText |
getHTMLText()
Returns the html text representation of the data written.
|
int |
getLength()
Returns the length of the data written.
|
RichText |
getRichText()
Returns the rich text representation of the data written.
|
java.lang.String |
getString()
Returns the string representation of the data written.
|
void |
open(java.net.URL url,
HTMLStyle htmlStyle)
Opens (Initializes) this target with the specified url and html style.
|
void |
setBackgroundColor(java.awt.Color color)
Sets the background color (the
BGCOLOR attribute in the
BODY tag) to be the specified color. |
void |
setLinkColor(java.awt.Color color)
Sets the text color (the
LINK attribute in the
BODY tag) to be the specified color. |
void |
setParagraphStyle(ParagraphStyle paragraphStyle)
Sets the current paragraph style of the target to be the specified
paragraph style.
|
void |
setTextColor(java.awt.Color color)
Sets the text color (the
TEXT attribute in the
BODY tag) to be the specified color. |
void |
setTitle(java.lang.String string)
Sets the document title (the
TITLE tag) to be the specified
string. |
void open(java.net.URL url,
HTMLStyle htmlStyle)
throws java.io.IOException
java.io.IOException - If an I/O error occurs.void close()
throws java.io.IOException
java.io.IOException - If an I/O error occurs.int getLength()
char getChar(int index)
TextAttachment getAttachmentAt(int index)
void append(Text text) throws java.io.IOException
java.io.IOException - If an I/O error occurs.void setParagraphStyle(ParagraphStyle paragraphStyle) throws java.io.IOException
java.io.IOException - If an I/O error occurs.void setTitle(java.lang.String string)
throws java.io.IOException
TITLE tag) to be the specified
string.java.io.IOException - If an I/O error occurs.void setBackgroundColor(java.awt.Color color)
throws java.io.IOException
BGCOLOR attribute in the
BODY tag) to be the specified color.java.io.IOException - If an I/O error occurs.void setTextColor(java.awt.Color color)
throws java.io.IOException
TEXT attribute in the
BODY tag) to be the specified color.java.io.IOException - If an I/O error occurs.void setLinkColor(java.awt.Color color)
throws java.io.IOException
LINK attribute in the
BODY tag) to be the specified color.java.io.IOException - If an I/O error occurs.java.lang.String getString()
RichText getRichText()
HTMLText getHTMLText()