humble-video-noarch/src/main/java/io/humble/ferry/JNIEnv.java
public static OSFamily getOSFamily(String osName)
  {
    final OSFamily retval;
    
    if (osName != null && osName.length() > 0)
    {
      if (osName.startsWith("Windows"))
        retval = OSFamily.WINDOWS;
      else if (osName.startsWith("Mac"))
        retval = OSFamily.MAC;
      else if (osName.startsWith("Linux"))
        retval = OSFamily.LINUX;
      else
        retval = OSFamily.UNKNOWN;
    } else
      retval = OSFamily.UNKNOWN;
    return retval;
  }
public static OSFamily getOSFamily(String osName)
  {
    final OSFamily retval;
    
    if (osName != null && osName.length() > 0)
    {
      if (osName.startsWith("Windows"))
        retval = OSFamily.WINDOWS;
      else if (osName.startsWith("Mac"))
        retval = OSFamily.MAC;
      else if (osName.startsWith("Linux"))
        retval = OSFamily.LINUX;
      else
        retval = OSFamily.UNKNOWN;
    } else
      retval = OSFamily.UNKNOWN;
    return retval;
  }
public static OSFamily getOSFamily ( String osName ) { final OSFamily retval ; if ( osName != null && osName . length ( ) > 0 ) { if ( osName . startsWith ( "Windows" ) ) retval = OSFamily . WINDOWS ; else if ( osName . startsWith ( "Mac" ) ) retval = OSFamily . MAC ; else if ( osName . startsWith ( "Linux" ) ) retval = OSFamily . LINUX ; else retval = OSFamily . UNKNOWN ; } else retval = OSFamily . UNKNOWN ; return retval ; }
Get the OSFamily based on the passed in osName specifier.

The string should be of a format returned from {@link System#getProperty(String)}
for the property "os.name".

@param osName the string to parse
@return the OSFamily
@see System#getProperty(String)
Get the OSFamily based on the passed in osName specifier .