Package hamsam.protocol.aim.util

Examples of hamsam.protocol.aim.util.SSIItem


        int pos = 3;

        for (int i = 0; i < ssiCount; i++) {

            // extract the SSIItems
            SSIItem item = new SSIItem(data, pos, data.length);
            ssiList.add(item);

            // now bump the pos index
            pos += item.getItemByteLength();
        }

    }
View Full Code Here


        if ((ssiList != null) && !ssiList.isEmpty()) {

            for (Iterator iter = ssiList.iterator(); iter.hasNext();) {

                SSIItem item = (SSIItem)iter.next();
                int groupId = item.getGroupId();
                int itemType = item.getItemType();

                if (itemType == SSIItem.TYPE_GROUP) {

                    if (!groupNameMap.containsKey(new Integer(groupId))) {
                        groupMap.put(item.getItemName(), new LinkedList());
                        groupNameMap.put(new Integer(groupId), item.getItemName());
                    }
                   
                } else if (itemType == SSIItem.TYPE_BUDDY) {
                    String name = (String)groupNameMap.get(new Integer(groupId));
                    List list = (List)groupMap.get(name);
                    list.add(item.getItemName());
                }
            }
        }

        return groupMap;
View Full Code Here

TOP

Related Classes of hamsam.protocol.aim.util.SSIItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.