|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.File
visad.install.JavaFile
public class JavaFile
A File
object for a java executable
which also extracts the JVM's version information.
Field Summary |
---|
Fields inherited from class java.io.File |
---|
pathSeparator, pathSeparatorChar, separator, separatorChar |
Constructor Summary | |
---|---|
JavaFile(java.io.File path)
|
|
JavaFile(java.io.File path,
java.lang.String name)
|
|
JavaFile(java.lang.String path)
|
|
JavaFile(java.lang.String parent,
java.lang.String child)
|
Method Summary | |
---|---|
int |
getMajor()
Get the major version number for this JVM. |
int |
getMinor()
Get the minor version number for this JVM. |
java.lang.String |
getVersionString()
Get the version string returned by this JVM. |
boolean |
matchMinimum(int major,
int minor)
See if this JVM is at least as recent as the requested major/minor pair. For example, if a Java2 JVM is required, this routine would be called with major=1 and minor=2. |
Methods inherited from class java.io.File |
---|
canExecute, canRead, canWrite, compareTo, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toString, toURI, toURL |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JavaFile(java.lang.String path)
java.io.File(String)
public JavaFile(java.io.File path)
java.io.File(File)
public JavaFile(java.lang.String parent, java.lang.String child)
java.io.File(String, String)
public JavaFile(java.io.File path, java.lang.String name)
java.io.File(File, String)
Method Detail |
---|
public java.lang.String getVersionString()
public int getMajor()
public int getMinor()
public final boolean matchMinimum(int major, int minor)
major
- JVM major version numberminor
- JVM minor version number
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |