Sharkysoft home

lava.text.html
Class HtmlText

java.lang.Object
  |
  +--lava.text.html.HtmlComponent
        |
        +--lava.text.html.HtmlText
Direct Known Subclasses:
HtmlError

public class HtmlText
extends HtmlComponent

Uninterpreted HTML text.

Details: This class represents runs of uninterpreted text, such as what normally occurs between regular HTML tags.

Version:
2000.12.22

Constructor Summary
HtmlText(java.lang.String text)
           
 
Method Summary
 java.lang.String getText()
          Returns text.
static HtmlText parse(java.io.PushbackReader pr)
          Parses text field from stream.
 java.lang.String toString()
          Returns text.
 
Methods inherited from class lava.text.html.HtmlComponent
getOriginalSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HtmlText

public HtmlText(java.lang.String text)
Method Detail

parse

public static HtmlText parse(java.io.PushbackReader pr)
                      throws java.io.IOException
Parses text field from stream.

Details: Parse reads a text field from an HTML stream (pr) and returns a (decoded) HtmlText instance representing it.

Parameters:
the - HTML stream
Returns:
the parsed field
Throws:
java.io.IOException - if an I/O error occurs
Since:
2000.12.22

getText

public java.lang.String getText()
Returns text.

Details: getText returns the run of text represented by this instance.

Returns:
the text

toString

public java.lang.String toString()
Returns text.

Details: toString returns the same value as getText.

Overrides:
toString in class HtmlComponent
Returns:
the text

Sharkysoft home