esmska.update
Class VersionFile

java.lang.Object
  extended by esmska.update.VersionFile

public class VersionFile
extends java.lang.Object

Class describing and creating the version file.


Field Summary
static java.lang.String TAG_DEPRECATED_GATEWAY
           
static java.lang.String TAG_DOWNLOAD
           
static java.lang.String TAG_FILENAME
           
static java.lang.String TAG_GATEWAY
           
static java.lang.String TAG_ICON
           
static java.lang.String TAG_LAST_UNSTABLE_VERSION
           
static java.lang.String TAG_LAST_VERSION
           
static java.lang.String TAG_MIN_VERSION
           
static java.lang.String TAG_NAME
           
static java.lang.String TAG_REASON
           
static java.lang.String TAG_ROOT
           
static java.lang.String TAG_VERSION
           
 
Constructor Summary
VersionFile()
           
 
Method Summary
static void create(java.io.OutputStream out, java.lang.String stableProgramVersion, java.lang.String unstableProgramVersion)
          Create new version file printed to provided output stream
static void main(java.lang.String[] args)
          Create new version file printed to standard output
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG_ROOT

public static final java.lang.String TAG_ROOT
See Also:
Constant Field Values

TAG_LAST_VERSION

public static final java.lang.String TAG_LAST_VERSION
See Also:
Constant Field Values

TAG_LAST_UNSTABLE_VERSION

public static final java.lang.String TAG_LAST_UNSTABLE_VERSION
See Also:
Constant Field Values

TAG_GATEWAY

public static final java.lang.String TAG_GATEWAY
See Also:
Constant Field Values

TAG_NAME

public static final java.lang.String TAG_NAME
See Also:
Constant Field Values

TAG_FILENAME

public static final java.lang.String TAG_FILENAME
See Also:
Constant Field Values

TAG_VERSION

public static final java.lang.String TAG_VERSION
See Also:
Constant Field Values

TAG_MIN_VERSION

public static final java.lang.String TAG_MIN_VERSION
See Also:
Constant Field Values

TAG_DOWNLOAD

public static final java.lang.String TAG_DOWNLOAD
See Also:
Constant Field Values

TAG_ICON

public static final java.lang.String TAG_ICON
See Also:
Constant Field Values

TAG_DEPRECATED_GATEWAY

public static final java.lang.String TAG_DEPRECATED_GATEWAY
See Also:
Constant Field Values

TAG_REASON

public static final java.lang.String TAG_REASON
See Also:
Constant Field Values
Constructor Detail

VersionFile

public VersionFile()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Create new version file printed to standard output

Parameters:
args - the command line arguments; the first argument is optional and may contain the latest stable program version to use; the second argument is optional and may contain the latest unstable program version to use
Throws:
java.lang.Exception

create

public static void create(java.io.OutputStream out,
                          java.lang.String stableProgramVersion,
                          java.lang.String unstableProgramVersion)
                   throws java.lang.Exception
Create new version file printed to provided output stream

Parameters:
out - output stream, not null
stableProgramVersion - latest stable program version, may be null
unstableProgramVersion - latest unstable program version, may be null
Throws:
java.lang.Exception