|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectClientVersionInfo
A data structure used to transmit information about the client software used to connect to OSCAR. This consists of a "client string" and a set of numbers used in specifying the exact version of the sofware. Note that currently AOL seems to block client versions other than its own official clients.
| Constructor Summary | |
ClientVersionInfo(java.lang.String versionString,
int major,
int minor,
int point,
int build,
int distCode)
Creates a new client version information object with the given properties. |
|
| Method Summary | |
int |
getBuild()
Returns the client's build number. |
int |
getDistCode()
Returns the client's "distribution code." |
int |
getMajor()
Returns the client's "major version." |
int |
getMinor()
Returns the client's "minor version." |
int |
getPoint()
Returns the client's "point version." |
java.lang.String |
getVersionString()
Returns the "client version string." |
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 ClientVersionInfo(java.lang.String versionString,
int major,
int minor,
int point,
int build,
int distCode)
versionString - a "client version string," like "AOL Instant
Messenger, version 5.1.3036/WIN32"major - a "major version," like 5 in the above exampleminor - a "minor version," like 1 in the above examplepoint - a "point version"; WinAIM 5.1 sends 0build - a "build number," 3036 in the above exampledistCode - a "distribution code," whose meaning is unknown at the
time of this writing| Method Detail |
public java.lang.String getVersionString()
null if
this value was not sent.
public int getMajor()
5 in
"5.1.3036". This will be -1 if this value was
not sent.
public int getMinor()
1 in
"5.1.3036". This will be -1 if this value was
not sent.
public int getPoint()
-1 if this value was not sent.
public int getBuild()
-1 if this
value was not sent.
public int getDistCode()
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 | |||||||||