public class Version
extends java.lang.Object
| Constructor | Description |
|---|---|
Version() |
| Modifier and Type | Method | Description |
|---|---|---|
static short |
fromFile(java.io.File location) |
Reads the version from the specified file.
|
static short |
fromStream(java.io.InputStream location) |
Reads the version from the specified stream.
|
static short |
toShort(byte[] values) |
Turns the bytes 6/7 (0-based) containing the version of a class into
a version String.
|
static java.lang.String |
toString(short version) |
Turns the version of a class into a version String.
|
public static short fromStream(java.io.InputStream location)
location - the stream to readpublic static short fromFile(java.io.File location)
location - the file to readpublic static short toShort(byte[] values)
values - the bytes 6 and 7public static java.lang.String toString(short version)
version - the versionCopyright © 2019. All Rights Reserved.