All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jive.erlang.EString

java.lang.Object
   |
   +----jive.erlang.EVar
           |
           +----jive.erlang.EString

public class EString
extends EVar
EString is a class that encapsulates an Erlang String.

Author:
Kaj Nygren (kaj@medialab.ericsson.se), Joakim Grebenö (jocke@erix.ericsson.se)

Constructor Index

 o EString()
Creates an empty Erlang String.
 o EString(String)
Creates an Erlang String with the contents of eString.

Method Index

 o equals(Object)
Compares this EString with another EString.
 o hashCode()
Returns a hashcode for this EString.
 o length()
Returns the length of the string.
 o pack()
Packs the Erlang String into a byte array.
 o value()
Returns a Java string version of the Erlang String.

Constructors

 o EString
 public EString()
Creates an empty Erlang String.

 o EString
 public EString(String eString)
Creates an Erlang String with the contents of eString.

Methods

 o length
 public int length()
Returns the length of the string.

 o value
 public String value()
Returns a Java string version of the Erlang String.

 o hashCode
 public int hashCode()
Returns a hashcode for this EString. Same as for String.

Overrides:
hashCode in class Object
 o equals
 public boolean equals(Object str1)
Compares this EString with another EString. Two EStrings are equal if their respective Java strings are equal.

Overrides:
equals in class Object
 o pack
 public byte[] pack()
Packs the Erlang String into a byte array. Used when sending the string to an Erlang server.

Overrides:
pack in class EVar

All Packages  Class Hierarchy  This Package  Previous  Next  Index