|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectMiniUserInfo
A data structure containing a screen name and warning level.
| Constructor Summary | |
|
MiniUserInfo(java.lang.String sn,
int warningLevel)
Creates a new mini user info block with the given properties. |
protected |
MiniUserInfo(java.lang.String sn,
int warningLevel,
int totalSize)
Creates a new miniature user info block with the given properties. |
| Method Summary | |
java.lang.String |
getScreenname()
Returns this user info block's screenname. |
int |
getTotalSize()
Returns the total size, in bytes, of this object, or -1 if
this object was not read using readUserInfo. |
int |
getWarningLevel()
Returns this user info block's warning level. |
static MiniUserInfo |
readUserInfo(ByteBlock block)
Returns a mini user info object generated from the given block of data, or null if no valid user info block exists in the given
block. |
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 |
protected MiniUserInfo(java.lang.String sn,
int warningLevel,
int totalSize)
sn - the user's screennamewarningLevel - the user's warning level, or -1 if the
warning level was not or is not to be senttotalSize - the total size of this structure, as read from a block
of binary data
public MiniUserInfo(java.lang.String sn,
int warningLevel)
sn - the user's screennamewarningLevel - the user's warning level| Method Detail |
public static MiniUserInfo readUserInfo(ByteBlock block)
null if no valid user info block exists in the given
block.
block - a block of bytes containing a mini user info block
public final java.lang.String getScreenname()
public final int getWarningLevel()
public final int getTotalSize()
-1 if
this object was not read using readUserInfo.
public void write(java.io.OutputStream out)
throws java.io.IOException
LiveWritable
write in interface LiveWritableout - 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 | |||||||||