|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSendBuddyListGroup
A data structure used in transferring (parts of) one's buddy list to another user.
Constructor Summary | |
SendBuddyListGroup(java.lang.String groupName,
java.lang.String[] buddies)
Creates a new Send Buddy List group object with the given group name and the given array of (non- null ) screennames. |
Method Summary | |
java.lang.String[] |
getBuddies()
Returns a list of the screennames of the buddies in this group. |
java.lang.String |
getGroupName()
Returns the name of the represented group. |
int |
getTotalSize()
Returns the total size, in bytes, of this object, as read from an incoming block of binary data. |
static SendBuddyListGroup |
readBuddyListGroup(ByteBlock block)
Reads a single "Send Buddy List group" structure from the given block of binary data. |
static SendBuddyListGroup[] |
readBuddyListGroups(ByteBlock block)
Generates an array of SendBuddyListGroup s from the given
block of binary data. |
java.lang.String |
toString()
|
void |
write(java.io.OutputStream out)
Writes a representation of this object to the given stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SendBuddyListGroup(java.lang.String groupName, java.lang.String[] buddies)
null
) screennames.
groupName
- the name of the represented groupbuddies
- a list of the screennames of the buddies in this groupMethod Detail |
public static SendBuddyListGroup[] readBuddyListGroups(ByteBlock block)
SendBuddyListGroup
s from the given
block of binary data. Note that this method will never return
null
; if no buddy list groups exist in the given block,
an empty array will be returned. Note that the total number of bytes
comprising the data represented in the returned array can be computed by
simply summing the total size of each of the
elements in the returned array.
block
- a block of binary data containing zero or more "Send Buddy
List group" structures
SendBuddyListGroup
s representing the
groups in the given blockpublic static SendBuddyListGroup readBuddyListGroup(ByteBlock block)
null
if no
complete group structure is present in the given block.
block
- a block of binary data containing a "Send Buddy List group"
block
SendBuddyListGroup
read from the given block of
data, or null
if none could be readpublic final java.lang.String getGroupName()
"Buddies"
.
public final java.lang.String[] getBuddies()
public final int getTotalSize()
-1
if this object was not read from a block of binary data
but was instead created manually.
-1
if
this object was not read from an incoming block of datapublic void write(java.io.OutputStream out) throws java.io.IOException
LiveWritable
write
in interface LiveWritable
out
- the stream to which to write
java.io.IOException
- if an I/O error occurspublic java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |