Class JarInformation

  • All Implemented Interfaces:

    
    public final class JarInformation
    
                        

    Stores values gathered by JarUtilities.jarInformation for easy access. Values stored and provided by this class are:

    • The directory in which the exe or JAR reside in

    • The file used to start ServerPackCreator. Either an exe or a JAR

    • The filename of the exe or JAR

    • The Java version with which ServerPackCreator is being used

    • The operating systems' architecture

    • The operating systems' name

    • The operating systems' version

    • Whether an exe is being used for running ServerPackCreator

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final File getJarFolder() The folder containing the ServerPackCreator.exe or JAR-file.
      final File getJarFile() The .exe or JAR-file of ServerPackCreator.
      final Path getJarPath() The path to the JAR-file or .
      final String getJarFileName() The name of the .exe or JAR-file.
      final String getJavaVersion() The Java version used to run ServerPackCreator.
      final String getOsArch() Architecture of the operating system on which ServerPackCreator is running on.
      final String getOsName() The name of the operating system on which ServerPackCreator is running on.
      final String getOsVersion() The version of the OS on which ServerPackCreator is running on.
      final Boolean isExe() Whether a .exe or JAR-file was used for running ServerPackCreator.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JarInformation

        JarInformation(Class<?> clazz)
        Parameters:
        clazz - The class from which to acquire information about the containing JAR-file and general location.
    • Method Detail

      • getJarFolder

         final File getJarFolder()

        The folder containing the ServerPackCreator.exe or JAR-file.

      • getJarFile

         final File getJarFile()

        The .exe or JAR-file of ServerPackCreator.

      • getJarPath

         final Path getJarPath()

        The path to the JAR-file or .exe of ServerPackCreator

      • getOsArch

         final String getOsArch()

        Architecture of the operating system on which ServerPackCreator is running on.

      • getOsName

         final String getOsName()

        The name of the operating system on which ServerPackCreator is running on.

      • getOsVersion

         final String getOsVersion()

        The version of the OS on which ServerPackCreator is running on.

      • isExe

         final Boolean isExe()

        Whether a .exe or JAR-file was used for running ServerPackCreator.