org.basex.gui.layout
Class BaseXTextTokens

java.lang.Object
  extended by org.basex.gui.layout.BaseXTextTokens

public final class BaseXTextTokens
extends Object

This class allows the iteration on tokens.

Author:
Workgroup DBIS, University of Konstanz 2005-10, ISC License, Christian Gruen

Field Summary
 byte[] text
          Text array to be written.
 
Method Summary
 int curr()
          Returns the current character.
 String nextWord()
          Returns the token as word.
 int size()
          Returns the text size.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

text

public byte[] text
Text array to be written.

Method Detail

nextWord

public String nextWord()
Returns the token as word.

Returns:
word

curr

public int curr()
Returns the current character.

Returns:
current character

size

public int size()
Returns the text size.

Returns:
text size

toString

public String toString()
Overrides:
toString in class Object