Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

Utf8_Enumeration Class Reference

Inheritance diagram for Utf8_Enumeration:
[legend]
Collaboration diagram for Utf8_Enumeration:
[legend]
List of all members.

Public Methods

 Utf8_Enumeration ()
 Utf8_Enumeration (byte b[])
boolean hasMoreElements ()
Object nextElement ()
void reset (byte b[])

Public Attributes

int c

Private Attributes

short curindex
short length
byte bytes []

Detailed Description

An enumeration of a Utf8 allows one to run through the characters in a unicode string; used primarily for comparing unicode strings. Note that unlike regular enumerations, and to be efficient (ie to avoid allocating an object in each call to nextElement), the return value is accessed by this object's 'c' field, and nextElement merely returns this.
See also:
CONSTANT_Utf8_info , Utf8_Enumeration::c , Utf8_Enumeration::nextElement
Author:
Clark Verbrugge

Definition at line 121 of file Utf8_Enumeration.java.


Constructor & Destructor Documentation

Utf8_Enumeration::Utf8_Enumeration   [inline]
 

For creating an empty enumeration; you must use reset() after this to initialize the enumeration.

See also:
Utf8_Enumeration::reset

Definition at line 136 of file Utf8_Enumeration.java.

Utf8_Enumeration::Utf8_Enumeration byte   b[] [inline]
 

For creating a normal enumeration of the given Utf8 string.

Parameters:
b   array of bytes in Utf8 format.

Definition at line 140 of file Utf8_Enumeration.java.


Member Function Documentation

boolean Utf8_Enumeration::hasMoreElements   [inline]
 

true if the entire string hasn't been enumerated yet.

Definition at line 146 of file Utf8_Enumeration.java.

Referenced by CONSTANT_Utf8_info::compareTo().

Object Utf8_Enumeration::nextElement   [inline]
 

Determines the next Utf8 character, and stores it in c.

Returns:
this
See also:
Utf8_Enumeration::c

Definition at line 154 of file Utf8_Enumeration.java.

Referenced by CONSTANT_Utf8_info::compareTo().

void Utf8_Enumeration::reset byte   b[] [inline]
 

Resets this object to be an enumeration of the given Utf8 string.

Parameters:
b   array of bytes in Utf8 format.

Definition at line 175 of file Utf8_Enumeration.java.

Referenced by CONSTANT_Utf8_info::compareTo().


Member Data Documentation

int Utf8_Enumeration::c
 

The latest character, as determined by nextElement.

See also:
Utf8_Enumeration::nextElement

Definition at line 126 of file Utf8_Enumeration.java.


The documentation for this class was generated from the following file:
Generated at Thu Feb 7 07:22:44 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001