|
jSyncManager | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.jSyncManager.API.Protocol.Util.DLPVersion
A class for handling DLP's Version information block format. This class holds version information, and can convert to and from DLP version information and Java primitive types. The Palm uses a four byte format for storing version information in a [major version].[minor version] format.
| Constructor Summary | |
|---|---|
(package private) |
DLPVersion()
Construct a new DLPVersion object as version "1.0". |
|
DLPVersion(int major,
int minor)
Construct a new DLPVersion object using the specified version information. |
| Method Summary | |
|---|---|
int |
getMajorVersion()
Retreives the major version number. |
int |
getMinorVersion()
Retreives the minor version number. |
float |
getVersion()
Get the version number as a float. |
void |
setMajorVersion(int major)
Set the major version number. |
void |
setMinorVersion(int i)
Set the minor version number. |
java.lang.String |
toString()
Convert this version information to human-readable text. |
byte[] |
versionAsBytes()
Convert this version object to a series of DLP version bytes. |
| Methods inherited from class java.lang.Object |
|---|
|
| Constructor Detail |
DLPVersion()
public DLPVersion(int major,
int minor)
major - the major version number.minor - the minor version number.| Method Detail |
public int getMajorVersion()
public int getMinorVersion()
public float getVersion()
public void setMajorVersion(int major)
major - the major version number.public void setMinorVersion(int i)
minor - the major version number.public java.lang.String toString()
toString in class java.lang.Objectpublic byte[] versionAsBytes()
|
jSyncManager | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||