Package org.svetovid.installer
Class JavaInstallation
java.lang.Object
org.svetovid.installer.JavaInstallation
- All Implemented Interfaces:
Comparable<JavaInstallation>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidintcompareTo(JavaInstallation that) booleanprotected static SvetovidProcessprotected static SvetovidProcessstatic JavaInstallationstatic voidgetFromAll(Collector<JavaInstallation> collector) static voidgetFromEnvironment(Collector<JavaInstallation> collector) static voidgetFromFilesystem(Path root, Collector<JavaInstallation> installationCollector, Collector<Path> pathCollector) static voidgetFromFilesystem(Collector<JavaInstallation> installationCollector, Collector<Path> pathCollector) static JavaInstallationgetFromPath(String path) static voidgetFromPath(Collector<JavaInstallation> collector) static voidgetFromRegistry(Collector<JavaInstallation> collector) static PathgetType()inthashCode()voidvoidrefresh()voidremoveFile(String path) toString()void
-
Field Details
-
LIB_FILE_NAME
- See Also:
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<JavaInstallation>
-
toString
-
exec
-
exec
-
getLocation
-
getBinLocation
-
getLibLocation
-
getJdkVersion
-
getJreVersion
-
getLibVersion
-
getDetails
-
getType
-
getVersionType
-
refresh
public void refresh() -
addFile
- Throws:
IOException
-
addFile
- Throws:
IOException
-
removeFile
- Throws:
IOException
-
installThis
- Throws:
IOException
-
uninstall
- Throws:
IOException
-
getJarLocation
-
getDefault
-
getFromEnvironment
-
getFromPath
-
getFromRegistry
-
getFromFilesystem
public static void getFromFilesystem(Collector<JavaInstallation> installationCollector, Collector<Path> pathCollector) -
getFromFilesystem
public static void getFromFilesystem(Path root, Collector<JavaInstallation> installationCollector, Collector<Path> pathCollector) -
getFromPath
-
getFromAll
-