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)
-
EString()
-
Creates an empty Erlang String.
-
EString(String)
- Creates an Erlang String with the contents of eString.
-
equals(Object)
- Compares this EString with another EString.
-
hashCode()
- Returns a hashcode for this EString.
-
length()
- Returns the length of the string.
-
pack()
-
Packs the Erlang String into a byte array.
-
value()
- Returns a Java string version of the Erlang String.
EString
public EString()
- Creates an empty Erlang String.
EString
public EString(String eString)
- Creates an Erlang String with the contents of eString.
length
public int length()
- Returns the length of the string.
value
public String value()
- Returns a Java string version of the Erlang String.
hashCode
public int hashCode()
- Returns a hashcode for this EString. Same as for String.
- Overrides:
- hashCode in class Object
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
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