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, decodepublic 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 ConfEString(String str)
public void encode(ConfOutputStream buf)
encode in class ConfEObjectbuf - an output stream to which the encoded string should be
written.public boolean equals(Object o)
equals in class ConfEObjecto - the ConfEString or String to compare to.public String stringValue()
toString()public String toString()
toString in class ConfEObjectstringValue()