|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectscone.util.tokenstream.HtmlTextToken
public class HtmlTextToken
HTML text.
This is unformattet HTML text
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
protected java.lang.String |
text
the text |
protected java.lang.String |
unescapedText
the text without excaped characters like |
protected java.lang.String |
whiteSpaces
preceding whitespaces |
Constructor Summary | |
---|---|
HtmlTextToken(java.lang.String text)
creates a HtmlTextToken |
|
HtmlTextToken(java.lang.String text,
java.lang.StringBuffer whiteSpaces)
creates a HtmlTextToken |
Method Summary | |
---|---|
void |
appendText(java.lang.String text)
appends to the text |
Token |
getClone()
returns a clone of this token |
java.lang.String |
getText()
Returns the simple text of the token without whitespaces. |
java.lang.String |
getUnescapedText()
Returns the token text with HTML escape sequences replaced with their character equivalents, e.g. |
java.lang.String |
getWhiteSpaces()
returns the leading whitespaces |
void |
setText(java.lang.String text)
changes the text |
void |
setWhiteSpaces(java.lang.String whiteSpaces)
changes the whitespaces |
java.lang.String |
toString()
returns a String representation of this Token. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
protected java.lang.String whiteSpaces
protected java.lang.String text
protected java.lang.String unescapedText
Constructor Detail |
---|
public HtmlTextToken(java.lang.String text, java.lang.StringBuffer whiteSpaces)
HtmlTextToken
text
- the textwhiteSpaces
- leading whitespaces (see the toString() method)public HtmlTextToken(java.lang.String text)
HtmlTextToken
text
- the textMethod Detail |
---|
public Token getClone()
getClone
in interface Token
public java.lang.String getText()
public java.lang.String getUnescapedText()
public void setText(java.lang.String text)
text
- the new textpublic void appendText(java.lang.String text)
text
- the text to appendpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getWhiteSpaces()
public void setWhiteSpaces(java.lang.String whiteSpaces)
whiteSpaces
- the new whitespaces
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |