All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface jp.kyasu.graphics.html.HTMLReaderTarget

public interface HTMLReaderTarget
An interface for the target into which the html reader renders the HTML document.

Version:
13 May 1998
Author:
Kazuki YASUMATSU
See Also:
HTMLReader

Method Index

 o append(Text)
Appends the specified text into the target.
 o close()
Closes (Finalizes) this target.
 o getAttachmentAt(int)
Returns the text attachment at the specified index in the data written.
 o getChar(int)
Returns the character at the specified index in the data written.
 o getHTMLText()
Returns the html text representation of the data written.
 o getLength()
Returns the length of the data written.
 o getRichText()
Returns the rich text representation of the data written.
 o getString()
Returns the string representation of the data written.
 o open(URL, HTMLStyle)
Opens (Initializes) this target with the specified url and html style.
 o setBackgroundColor(Color)
Sets the background color (the BGCOLOR attribute in the BODY tag) to be the specified color.
 o setLinkColor(Color)
Sets the text color (the LINK attribute in the BODY tag) to be the specified color.
 o setParagraphStyle(ParagraphStyle)
Sets the current paragraph style of the target to be the specified paragraph style.
 o setTextColor(Color)
Sets the text color (the TEXT attribute in the BODY tag) to be the specified color.
 o setTitle(String)
Sets the document title (the TITLE tag) to be the specified string.

Methods

 o open
 public abstract void open(URL url,
                           HTMLStyle htmlStyle) throws IOException
Opens (Initializes) this target with the specified url and html style.

Throws: IOException
If an I/O error occurs.
 o close
 public abstract void close() throws IOException
Closes (Finalizes) this target.

Throws: IOException
If an I/O error occurs.
 o getLength
 public abstract int getLength()
Returns the length of the data written.

 o getChar
 public abstract char getChar(int index)
Returns the character at the specified index in the data written.

 o getAttachmentAt
 public abstract TextAttachment getAttachmentAt(int index)
Returns the text attachment at the specified index in the data written.

 o append
 public abstract void append(Text text) throws IOException
Appends the specified text into the target.

Throws: IOException
If an I/O error occurs.
 o setParagraphStyle
 public abstract void setParagraphStyle(ParagraphStyle paragraphStyle) throws IOException
Sets the current paragraph style of the target to be the specified paragraph style.

Throws: IOException
If an I/O error occurs.
 o setTitle
 public abstract void setTitle(String string) throws IOException
Sets the document title (the TITLE tag) to be the specified string.

Throws: IOException
If an I/O error occurs.
 o setBackgroundColor
 public abstract void setBackgroundColor(Color color) throws IOException
Sets the background color (the BGCOLOR attribute in the BODY tag) to be the specified color.

Throws: IOException
If an I/O error occurs.
 o setTextColor
 public abstract void setTextColor(Color color) throws IOException
Sets the text color (the TEXT attribute in the BODY tag) to be the specified color.

Throws: IOException
If an I/O error occurs.
 o setLinkColor
 public abstract void setLinkColor(Color color) throws IOException
Sets the text color (the LINK attribute in the BODY tag) to be the specified color.

Throws: IOException
If an I/O error occurs.
 o getString
 public abstract String getString()
Returns the string representation of the data written.

 o getRichText
 public abstract RichText getRichText()
Returns the rich text representation of the data written.

 o getHTMLText
 public abstract HTMLText getHTMLText()
Returns the html text representation of the data written.


All Packages  Class Hierarchy  This Package  Previous  Next  Index