Unified Typesetting API M1-20040817

de.inghuimische.uta.test
Class SimpleCharIterator

java.lang.Object
  extended byde.inghuimische.uta.test.SimpleCharIterator
All Implemented Interfaces:
UtaAttributedString, UtaCharacterIterator

public class SimpleCharIterator
extends Object
implements UtaCharacterIterator, UtaAttributedString

Limited implementation for testing purposes.

Author:
Christian Ziesemer

Field Summary
 
Fields inherited from interface de.inghuimische.uta.UtaCharacterIterator
DONE
 
Constructor Summary
SimpleCharIterator(CharacterIterator it)
           
 
Method Summary
 int currentCodePoint()
          Returns the current code point.
 Map getAttributes()
          Returns the attributes for the current code point.
 int getIndex()
          Returns the current index.
 UtaCharacterIterator getIterator()
          Returns the iterator for this string.
 int nextCodePoint()
          Returns the current code point and increments the pointer to the next code point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleCharIterator

public SimpleCharIterator(CharacterIterator it)
Method Detail

nextCodePoint

public int nextCodePoint()
Description copied from interface: UtaCharacterIterator
Returns the current code point and increments the pointer to the next code point. DONE is returned if there are no further code points.

Specified by:
nextCodePoint in interface UtaCharacterIterator
Returns:
The current code point or DONE if there are no further code points.

getIndex

public int getIndex()
Description copied from interface: UtaCharacterIterator
Returns the current index.

Specified by:
getIndex in interface UtaCharacterIterator
Returns:
The current index.

currentCodePoint

public int currentCodePoint()
Description copied from interface: UtaCharacterIterator
Returns the current code point.

Specified by:
currentCodePoint in interface UtaCharacterIterator
Returns:
The current code point.

getAttributes

public Map getAttributes()
Description copied from interface: UtaCharacterIterator
Returns the attributes for the current code point.

Specified by:
getAttributes in interface UtaCharacterIterator
Returns:
The attributes for the current code point.

getIterator

public UtaCharacterIterator getIterator()
Description copied from interface: UtaAttributedString
Returns the iterator for this string.

Specified by:
getIterator in interface UtaAttributedString
Returns:
The iterator for this string.

Unified Typesetting API M1-20040817


An inghuimische.de project.
Copyright (C) 2004 Christian Ziesemer; See the Mozilla Public License for more details.