FileDocCategorySizeDatePackage
UnicodeConstant.javaAPI DocphoneME MR2 API (J2ME)2274Wed May 02 17:59:48 BST 2007components

UnicodeConstant

public class UnicodeConstant extends ConstantObject

Fields Summary
public String
string
public String
UTFstring
public int
stringTableOffset
public boolean
isSuffix
Constructors Summary
private UnicodeConstant(int t, String s)

    // used by in-core output writers

          
	tag = t;
	string = s;
	nSlots = 1;
    
public UnicodeConstant(String s)

	this( Const.CONSTANT_UTF8, s );
    
Methods Summary
public booleanequals(java.lang.Object o)

	if (o instanceof UnicodeConstant) {
	    UnicodeConstant a = (UnicodeConstant) o;
	    return string.equals(a.string);
	} else {
	    return false;
	}
    
public inthashCode()

	return string.hashCode();
    
public booleanisResolved()

 return true; 
public static ConstantObjectread(int t, java.io.DataInput i)

	return new UnicodeConstant( t, i.readUTF() );
    
public java.lang.StringtoString()

	return string;
    
public voidwrite(java.io.DataOutput o)

	o.writeByte( tag );
	o.writeUTF( string );