com.cleancode.util
Class Sniffer

java.lang.Object
  extended by com.cleancode.util.Sniffer

public final class Sniffer
extends Object

Identifies the operating system.

Since:
CleanCode 0.9
Version:
$Revision: 9 $
Author:
Michael Sorens

Nested Class Summary
static class Sniffer.Test
          A standalone test class to exercise Sniffer.
 
Field Summary
static String VERSION
          Current version of this class.
 
Method Summary
static String getOsName()
          Reports the OS name.
static boolean isWindows()
          Reports whether current system is Windows or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final String VERSION
Current version of this class.

Method Detail

isWindows

public static boolean isWindows()
Reports whether current system is Windows or not.

Returns:
boolean indicating whether system is Windows.

getOsName

public static String getOsName()
Reports the OS name.

Returns:
name of operating system


CleanCode Java Libraries Copyright © 2001-2012 Michael Sorens - Revised 2012.12.10 Get CleanCode at SourceForge.net. Fast, secure and Free Open Source software downloads