dmadsit123@promethesys.com
Screen names that are received through the
BuddyUpdateTocResponse class are inconsistant with
those received from the processing of ConfigTocResponse
messages with respect to formatting. This can easily be
overcome with a few string processing tricks, but is a
definite hurdle for any task other than actually
displaying the name (such as hashing).
For example:
1. ConfigTocResponse reports the screen name
"surfman49" as the String "surfman49" when accessed
through the Buddy class.
code:
JaimConnection c;
(after configuration response)
Iterator it = c.getGroups().iterator();
while (it.hasNext()) {
Enumeration e =
((Group)it.next()).enumerateBuddies();
while (e.hasMoreElements()) {
((Buddy)e.nextElement()).getName();
}
}
2. BuddyUpdateTocResponse reports the screen name
"surfman49" as "s u r f m a n 4 9" due to formatting
customization that person had done to make their screen
name look pretty.
code:
BuddyUpdateTocResponse butr
butr.getBuddy(); (returns funny formatted version)