Class Version
java.lang.Object
|
+--Version
- All Implemented Interfaces:
- java.io.Serializable
- public final class Version
- extends java.lang.Object
- implements java.io.Serializable
This class is used to keep track of which version of carto is running.
It has only static fields and can niether be subclassed nor instantiated.
- See Also:
- Serialized Form
|
Field Summary |
static java.lang.String |
date
|
int |
majorversion
|
int |
minorversion
|
int |
rev
The revision is automatically incremented each time the the program is uploaded |
private static long |
serialVersionUID
Versions of carto with different serialversion
cannot read each others files. |
|
Method Summary |
java.lang.String |
getAbout()
|
static long |
getSUID()
|
java.lang.String |
getVersion()
Returns the current version as a string. |
static void |
main(java.lang.String[] args)
|
void |
read(java.io.InputStream instr)
|
(package private) static java.lang.String |
replace(java.lang.String line,
java.lang.String pattern,
java.lang.String newvalue)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- Versions of carto with different serialversion
cannot read each others files. New serialversions
must be used sparingly if at all after any users
have the program. Even then, conversion programs would
have to be written.
- See Also:
- Constant Field Values
majorversion
public int majorversion
minorversion
public int minorversion
rev
public int rev
- The revision is automatically incremented each time the the program is uploaded
date
public static java.lang.String date
Version
public Version()
Version
public Version(java.lang.String name)
read
public void read(java.io.InputStream instr)
throws java.io.IOException,
java.lang.NumberFormatException
java.io.IOException
java.lang.NumberFormatException
getVersion
public java.lang.String getVersion()
- Returns the current version as a string.
getSUID
public static long getSUID()
getAbout
public java.lang.String getAbout()
main
public static void main(java.lang.String[] args)
replace
static java.lang.String replace(java.lang.String line,
java.lang.String pattern,
java.lang.String newvalue)