|
Agent System POND 1.2 (28.2.2002) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--FIM.Util.XML.XMLByteArray
Encodes a byte array as an XML element. The name of the element is always "XMLByteArray".
Constructor Summary | |
XMLByteArray()
Create an empty XMLByteArray object. |
|
XMLByteArray(byte[] data)
Creates a new XMLByteArray object from a byte array. |
|
XMLByteArray(Element elem)
Creates a new XMLByteArray object from an element. |
Method Summary | |
void |
decodeXMLElement(Element elem)
Restores the contained string from an element. |
boolean |
equals(Object obj)
Compares two XMLByteArray objects |
Serializable |
getAsSerializable()
Retrieve the byte array as a Serializable . |
Element |
getAsXMLElement(Document doc)
Returns the string encoded as an XML element with the name "XMLString". |
byte[] |
getBytes()
Retrieve the contained data as a byte arra. |
void |
setBytes(byte[] data)
Set the contained data to a new value. |
String |
toString()
Retrieve the contained string. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public XMLByteArray()
public XMLByteArray(byte[] data)
data
- the content of the XMLStringpublic XMLByteArray(Element elem)
data
- the element to parseMethod Detail |
public byte[] getBytes()
public void setBytes(byte[] data)
data
- the data to setpublic Serializable getAsSerializable()
Serializable
.getAsSerializable
in interface XMLEncodeable
public Element getAsXMLElement(Document doc)
getAsXMLElement
in interface XMLEncodeable
public void decodeXMLElement(Element elem) throws IllegalArgumentException
decodeXMLElement
in interface XMLEncodeable
elem
- the element containing the stringIllegalArgumentException
- if the element is wrong or ill-formed (tag name not "XMLString"
or does not contain only a CDATASection)public String toString()
toString
in interface XMLEncodeable
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
obj
- the object to compare to this one
|
Agent System POND 1.2 (28.2.2002) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |