Documentation of 'visad.install.JavaFile' Java class
JavaFile
visad.install

Class JavaFile

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<java.io.File>


    public class JavaFile
    extends java.io.File
    A File object for a java executable which also extracts the JVM's version information.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.io.File

        pathSeparator, pathSeparatorChar, separator, separatorChar
    • Constructor Summary

      Constructors 
      Constructor and Description
      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

      All Methods Instance Methods Concrete Methods 
      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.
      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, 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
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • JavaFile

        public JavaFile(java.lang.String path)
        See Also:
        File.File(String)
      • JavaFile

        public JavaFile(java.io.File path)
        See Also:
        File.File(String)
      • JavaFile

        public JavaFile(java.lang.String parent,
                        java.lang.String child)
        See Also:
        File.File(String, String)
      • JavaFile

        public JavaFile(java.io.File path,
                        java.lang.String name)
        See Also:
        File.File(File, String)
    • Method Detail

      • getVersionString

        public java.lang.String getVersionString()
        Get the version string returned by this JVM. For a 1.3.2 JVM, this method might return something like "1.3.2_01".
        Returns:
        the version string for this JVM.
      • getMajor

        public int getMajor()
        Get the major version number for this JVM. For a 1.3.2 JVM, this method would return 1.
        Returns:
        the major version number for this JVM.
      • getMinor

        public int getMinor()
        Get the minor version number for this JVM. For a 1.3.2 JVM, this method would return 3.
        Returns:
        the minor version number for this JVM.
      • matchMinimum

        public final 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.
        Parameters:
        major - JVM major version number
        minor - JVM minor version number
        Returns:
        true if the JVM is at least the requested version.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.