Class JavaInstallation

  • All Implemented Interfaces:
    java.lang.Comparable<JavaInstallation>

    public final class JavaInstallation
    extends java.lang.Object
    implements java.lang.Comparable<JavaInstallation>
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • exec

        protected static SvetovidProcess exec​(java.lang.String... command)
      • exec

        protected static SvetovidProcess exec​(java.nio.file.Path directory,
                                              java.lang.String... command)
      • getLocation

        public java.nio.file.Path getLocation()
      • getBinLocation

        public java.nio.file.Path getBinLocation()
      • getLibLocation

        public java.nio.file.Path getLibLocation()
      • getJdkVersion

        public java.lang.String getJdkVersion()
      • getJreVersion

        public java.lang.String getJreVersion()
      • getLibVersion

        public java.lang.String getLibVersion()
      • getDetails

        public java.lang.String getDetails()
      • refresh

        public void refresh()
      • addFile

        public void addFile​(java.lang.String path,
                            byte[] content)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • addFile

        public void addFile​(java.lang.String path,
                            java.nio.file.Path content)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • removeFile

        public void removeFile​(java.lang.String path)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • installThis

        public void installThis()
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • uninstall

        public void uninstall()
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • getJarLocation

        public static java.nio.file.Path getJarLocation()
      • getFromFilesystem

        public static void getFromFilesystem​(java.nio.file.Path root,
                                             Collector<JavaInstallation> installationCollector,
                                             Collector<java.nio.file.Path> pathCollector)
      • getFromPath

        public static JavaInstallation getFromPath​(java.lang.String path)