|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAbstractChatInfo
ExchangeInfo
Represents information about a given chat "exchange." Exchanges are, essentially, individual chat services within a single OSCAR chat server; for example, two chat rooms with the same name can exist on two different exchanges. Exchanges are identified by numbers, and generally something like exchanges 4 through 20 are available on AOL's official AIM servers. Exchange #4 is the only exchange on which WinAIM users can create chat rooms or join without being invited; that is, if you're in a chat room in WinAIM, it's probably on exchange #4.
Field Summary |
Method Summary | |
int |
getNumber()
Returns this exchange's "exchange number." |
java.lang.String |
getUrl()
Returns a URL that supposedly describes this exchange. |
static ExchangeInfo |
readExchangeInfo(ByteBlock block)
Returns an exchange information block read from the given data block, or null if no valid block can be read. |
java.lang.String |
toString()
|
void |
write(java.io.OutputStream out)
Writes a representation of this object to the given stream. |
Methods inherited from class AbstractChatInfo |
getBaseTlvCount, getCharset1, getCharset2, getContentType, getCreatePerms, getCreationDate, getFlags, getLanguage1, getLanguage2, getMaxMsgLen, getMaxOccupancy, getName, getSomething, readBaseInfo, writeBaseInfo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public static ExchangeInfo readExchangeInfo(ByteBlock block)
null
if no valid block can be read.
block
- the data block containing an exchange info block
null
if none can be readpublic final int getNumber()
public final java.lang.String getUrl()
public 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()
toString
in class AbstractChatInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |