public class JavaFile extends File
File
object for a java executable
which also extracts the JVM's version information.pathSeparator, pathSeparatorChar, separator, separatorChar
Constructor and Description |
---|
JavaFile(File path) |
JavaFile(File path,
String name) |
JavaFile(String path) |
JavaFile(String parent,
String child) |
Modifier and Type | Method and Description |
---|---|
int |
getMajor()
Get the major version number for this JVM.
|
int |
getMinor()
Get the minor version number for this JVM.
|
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. |
canExecute, canRead, canWrite, 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, toPath, toString, toURI, toURL
public JavaFile(String path)
File(String)
public JavaFile(File path)
File(String)
public JavaFile(String parent, String child)
File(String, String)
public JavaFile(File path, String name)
File(File, String)
public String getVersionString()
public int getMajor()
public int getMinor()
public final boolean matchMinimum(int major, int minor)
major
- JVM major version numberminor
- JVM minor version numberCopyright © 1996–2023 The SSEC Visualization Project. All rights reserved.