|
JAFS API v2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openafs.jafs.VersionInfo
Class providing static methods for retrieving version information specific to
the JNI library.
The following is a simple example of how to use the
VersionInfo
class.
import org.openafs.jafs.VersionInfo; ... public class ... { ... public static void main(String[] args) throws Exception { System.out.println("Attributes of the jafs native library:"); System.out.println("\tDescription:\t" + VersionInfo.getDescription()); System.out.println("\tCompile Date:\t" + VersionInfo.getCompileDate()); System.out.println("\tVersion:\t" + VersionInfo.getFullVersion()); } ... }
Constructor Summary | |
VersionInfo()
|
Method Summary | |
static Date |
getBuildDate()
Returns the date, in the form of a Date object,
representing the compile-time of the native library. |
static int |
getBuildNumber()
Returns the build number of the native library. |
static String |
getBuildPlatform()
Returns the description of the platform that built the native library. |
protected static long |
getBuildTime()
Returns the date, in the form of a long value of milliseconds since "epoch", representing the compile-time of the native library. |
static String |
getDescription()
Returns the compile-time description of the native library. |
static String |
getFullVersion()
Returns the version, in the form of " |
static String |
getVersion()
Returns the version number of the native library. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VersionInfo()
Method Detail |
public static final Date getBuildDate() throws Exception
Date
object,
representing the compile-time of the native library.
Exception
- If an error occurs in the native codeDate
public static final String getFullVersion() throws Exception
Exception
- If an error occurs in the native codegetVersion()
,
getBuildNumber()
protected static final long getBuildTime() throws Exception
Exception
- If an error occurs in the native codegetBuildTime()
public static final String getDescription() throws Exception
Exception
- If an error occurs in the native codepublic static final int getBuildNumber() throws Exception
Exception
- If an error occurs in the native codepublic static final String getVersion() throws Exception
Exception
- If an error occurs in the native codepublic static final String getBuildPlatform() throws Exception
Exception
- If an error occurs in the native code
|
JAFS API v2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |