public class ConfEAtom extends ConfEObject implements Serializable, Cloneable
maxAtomLength
characters.| Modifier and Type | Field and Description |
|---|---|
static int |
maxAtomLength
The maximun allowed length of an atom, in characters
|
| Constructor and Description |
|---|
ConfEAtom(boolean t)
Create an atom whose value is "true" or "false".
|
ConfEAtom(ConfInputStream buf)
Create an atom from a stream containing an atom encoded in E external
format.
|
ConfEAtom(String atom)
Create an atom from the given string.
|
| Modifier and Type | Method and Description |
|---|---|
String |
atomValue()
Get the actual string contained in this object.
|
boolean |
booleanValue()
The boolean value of this atom.
|
void |
encode(ConfOutputStream buf)
Convert this atom to the equivalent E external representation.
|
boolean |
equals(Object o)
Determine if two atoms are equal.
|
int |
hashCode() |
String |
toString()
Get the printname of the atom represented by this object.
|
clone, decodepublic static final int maxAtomLength
public ConfEAtom(boolean t)
t - boolean value true/falsepublic ConfEAtom(ConfInputStream buf) throws ConfEDecodeException
buf - the stream containing the encoded atom.ConfEDecodeException - if the buffer does not contain a valid external
representation of an E atom.public ConfEAtom(String atom)
atom - the string to create the atom from.IllegalArgumentException - if the string contains more than
maxAtomLength characters.public String atomValue()
toString()public boolean booleanValue()
public void encode(ConfOutputStream buf)
encode in class ConfEObjectbuf - an output stream to which the encoded atom should be written.public boolean equals(Object o)
equals in class ConfEObjecto - the other object to compare to.public String toString()
toString in class ConfEObjectatomValue()