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(String atom)
atom - the string to create the atom from.IllegalArgumentException - if the string contains more than
                maxAtomLength characters.public 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(boolean t)
t - boolean value true/falsepublic String atomValue()
ConfEAtom.toString()public boolean booleanValue()
public String toString()
toString in class ConfEObjectConfEAtom.atomValue()public boolean equals(Object o)
equals in class ConfEObjecto - the other object to compare to.public void encode(ConfOutputStream buf)
encode in class ConfEObjectbuf - an output stream to which the encoded atom should be written.