All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ice.htmlbrowser.Lex

java.lang.Object
   |
   +----ice.htmlbrowser.Lex

public class Lex
extends Object

Variable Index

 o flagPreformatted
 o flagSpaceBefore
True if there were some spaces before current token.
 o flagTokenIsSpecial
True if current token is a special symbol (&...;).
 o flagTokenIsTag
True if current token is a Tag

Constructor Index

 o Lex()
Create a lexical analysis object.

Method Index

 o getNextToken()
Get the next token.
 o moreTokens()
Check if more tokens are available.
 o setBuffer(byte[])
 o setBuffer(String)
 o setPlainText(boolean)
 o setPreformatted(boolean)
Turn Preformatted mode ON/OFF.

Variables

 o flagPreformatted
 public boolean flagPreformatted
 o flagTokenIsTag
 public boolean flagTokenIsTag
True if current token is a Tag

 o flagTokenIsSpecial
 public boolean flagTokenIsSpecial
True if current token is a special symbol (&...;). The special symbols are converted into normal characters in the parser automatically.

 o flagSpaceBefore
 public boolean flagSpaceBefore
True if there were some spaces before current token. This variable has to be cleared.

Constructors

 o Lex
 public Lex()
Create a lexical analysis object.

Methods

 o setBuffer
 public void setBuffer(byte buf[])
 o setBuffer
 public void setBuffer(String str)
 o setPlainText
 public void setPlainText(boolean flag)
 o 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.
 o moreTokens
 public boolean moreTokens()
Check if more tokens are available.

Returns:
true if more tokens available, false otherwise.
 o getNextToken
 public String getNextToken()
Get the next token.

Returns:
Token as a string.

All Packages  Class Hierarchy  This Package  Previous  Next  Index