|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.ericsson.otp.erlang.OtpErlangObject
com.ericsson.otp.erlang.OtpErlangString
public class OtpErlangString
Provides a Java representation of Erlang strings.
| Constructor Summary | |
|---|---|
OtpErlangString(OtpInputStream buf)
Create an Erlang string from a stream containing a string encoded in Erlang external format. |
|
OtpErlangString(java.lang.String str)
Create an Erlang string from the given string. |
|
| Method Summary | |
|---|---|
void |
encode(OtpOutputStream buf)
Convert this string to the equivalent Erlang external representation. |
boolean |
equals(java.lang.Object o)
Determine if two strings are equal. |
java.lang.String |
stringValue()
Get the actual string contained in this object. |
java.lang.String |
toString()
Get the printable version of the string contained in this object. |
| Methods inherited from class com.ericsson.otp.erlang.OtpErlangObject |
|---|
clone, decode |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OtpErlangString(java.lang.String str)
public OtpErlangString(OtpInputStream buf)
throws OtpErlangDecodeException
buf - the stream containing the encoded string.
OtpErlangDecodeException - if the buffer does not contain a valid external
representation of an Erlang string.| Method Detail |
|---|
public java.lang.String stringValue()
toString()public java.lang.String toString()
toString in class OtpErlangObjectstringValue()public void encode(OtpOutputStream buf)
encode in class OtpErlangObjectbuf - an output stream to which the encoded string should be
written.public boolean equals(java.lang.Object o)
equals in class OtpErlangObjecto - the OtpErlangString or String to compare to.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||