All Packages Class Hierarchy This Package Previous Next Index
Class ice.htmlbrowser.Lex
java.lang.Object
|
+----ice.htmlbrowser.Lex
- public class Lex
- extends Object
-
flagPreformatted
-
-
flagSpaceBefore
- True if there were some spaces before current token.
-
flagTokenIsSpecial
- True if current token is a special symbol (&...;).
-
flagTokenIsTag
- True if current token is a Tag
-
Lex()
- Create a lexical analysis object.
-
getNextToken()
- Get the next token.
-
moreTokens()
- Check if more tokens are available.
-
setBuffer(byte[])
-
-
setBuffer(String)
-
-
setPlainText(boolean)
-
-
setPreformatted(boolean)
- Turn Preformatted mode ON/OFF.
flagPreformatted
public boolean flagPreformatted
flagTokenIsTag
public boolean flagTokenIsTag
- True if current token is a Tag
flagTokenIsSpecial
public boolean flagTokenIsSpecial
- True if current token is a special symbol (&...;).
The special symbols are converted into normal characters
in the parser automatically.
flagSpaceBefore
public boolean flagSpaceBefore
- True if there were some spaces before current token.
This variable has to be cleared.
Lex
public Lex()
- Create a lexical analysis object.
setBuffer
public void setBuffer(byte buf[])
setBuffer
public void setBuffer(String str)
setPlainText
public void setPlainText(boolean flag)
setPreformatted
public void setPreformatted(boolean flag)
- Turn Preformatted mode ON/OFF.
If it is ON all whitespace characters are treated as tokens.
- Parameters:
- flag - If true Preformatted mode is ON, if false - OFF.
moreTokens
public boolean moreTokens()
- Check if more tokens are available.
- Returns:
- true if more tokens available, false otherwise.
getNextToken
public String getNextToken()
- Get the next token.
- Returns:
- Token as a string.
All Packages Class Hierarchy This Package Previous Next Index