FileDocCategorySizeDatePackage
UnicodeConstant.javaAPI DocJ2ME CLDC 1.11468Wed Feb 05 15:56:02 GMT 2003components

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 );