public class ConfEString extends ConfEObject implements Serializable, Cloneable
Constructor and Description |
---|
ConfEString(ConfInputStream buf)
Create an E string from a stream containing a string encoded in E
external format.
|
ConfEString(String str)
Create an E string from the given string.
|
Modifier and Type | Method and Description |
---|---|
void |
encode(ConfOutputStream buf)
Convert this string to the equivalent E external representation.
|
boolean |
equals(Object o)
Determine if two strings are equal.
|
String |
stringValue()
Get the actual string contained in this object.
|
String |
toString()
Get the printable version of the string contained in this object.
|
clone, decode
public ConfEString(String str)
public ConfEString(ConfInputStream buf) throws ConfEDecodeException
buf
- the stream containing the encoded string.ConfEDecodeException
- if the buffer does not contain a valid external
representation of an E string.public String stringValue()
ConfEString.toString()
public String toString()
toString
in class ConfEObject
ConfEString.stringValue()
public void encode(ConfOutputStream buf)
encode
in class ConfEObject
buf
- an output stream to which the encoded string should be
written.public boolean equals(Object o)
equals
in class ConfEObject
o
- the ConfEString or String to compare to.