org.productivity.java.habitat4j.util
Class InstanceOsHelper

java.lang.Object
  extended by org.productivity.java.habitat4j.util.InstanceOsHelper

public class InstanceOsHelper
extends java.lang.Object

Utility used to determine the "simplified" operating system, i.e. "windows", "unix", or "other".

## LICENSE INFORMATION ##

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Version:
$Id: InstanceOsHelper.html,v 1.2 2008/11/24 15:15:06 cvs Exp $
Author:
Justin Yunke <habitat4j@productivity.org>

Field Summary
static java.lang.String[] UNIX_OS_LIST
           
static java.lang.String[] WINDOWS_OS_LIST
           
 
Constructor Summary
InstanceOsHelper()
           
 
Method Summary
static java.lang.String getInstanceOS()
           
protected static boolean match(java.lang.String osName, java.lang.String listSysPropName, java.lang.String[] entries)
           
protected static boolean matchDefault(java.lang.String osName, java.lang.String[] entries)
           
protected static boolean matchList(java.lang.String osName, java.lang.String entries)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNIX_OS_LIST

public static final java.lang.String[] UNIX_OS_LIST

WINDOWS_OS_LIST

public static final java.lang.String[] WINDOWS_OS_LIST
Constructor Detail

InstanceOsHelper

public InstanceOsHelper()
Method Detail

matchList

protected static boolean matchList(java.lang.String osName,
                                   java.lang.String entries)

matchDefault

protected static boolean matchDefault(java.lang.String osName,
                                      java.lang.String[] entries)

match

protected static boolean match(java.lang.String osName,
                               java.lang.String listSysPropName,
                               java.lang.String[] entries)

getInstanceOS

public static java.lang.String getInstanceOS()