Class SystemUtils

java.lang.Object
de.mid.innovator.util.SystemUtils

public final class SystemUtils extends Object
The class contains functions to get system dependent information or call system dependent functions.
Author:
borschet
  • Field Details

  • Constructor Details

    • SystemUtils

      public SystemUtils()
  • Method Details

    • getDisplay

      public static String getDisplay()
      Returns the display depending on the operating system.
      Returns:
      Windows - HostName:LoginName Unix - DISPLAY
    • getSystemUser

      public static String getSystemUser()
      Returns the system user name depending on the operating system.
      Returns:
      Windows - System property user.name or JavaAPI if it is not known by the os Unix - System property USER or JavaAPI if it is not known by the os
    • getSystemUserKind

      public static SystemUserKind getSystemUserKind()
      Tells how the system user has been computed.
      Returns:
      kind of system user
    • getSystemDomain

      public static String getSystemDomain()
      Returns the system user name depending on the operating system.
      Returns:
      Windows - Environ USERDOMAIN - if null the host name
    • getSystemDomainKind

      public static SystemDomainKind getSystemDomainKind()
      Tells how the system domain has been computed.
      Returns:
      kind of system domain
    • OpenDocument

      public static void OpenDocument(String strDocumentName) throws IOException
      Opens a document depending on the operating system.
      Throws:
      IOException
    • getInohost

      public static String getInohost()
    • getInohostName

      public static String getInohostName()
    • getInohostPort

      public static int getInohostPort()
    • getIpv6Use

      public static boolean getIpv6Use()
    • getNatUse

      public static boolean getNatUse()
    • getIPADddressByProperty

      public static String getIPADddressByProperty()
    • getExternHostname

      public static String getExternHostname()
    • getLocalHostnameByProperty

      public static String getLocalHostnameByProperty()
    • getFQHostName

      public static String getFQHostName()
    • getHostName

      public static String getHostName()
    • FileReadToByteArray

      public static byte[] FileReadToByteArray(File file) throws IOException
      Throws:
      IOException
    • isLocalIPAddress

      public static boolean isLocalIPAddress(String ipStr)