Sweet Home 3D 3.4

com.eteks.sweethome3d.tools
Class OperatingSystem

java.lang.Object
  extended by com.eteks.sweethome3d.tools.OperatingSystem

public class OperatingSystem
extends java.lang.Object

Tools used to test current user operating system.

Author:
Emmanuel Puybaret

Method Summary
static java.io.File createTemporaryFile(java.lang.String prefix, java.lang.String suffix)
          Returns a temporary file that will be deleted when JVM will exit.
static void deleteTemporaryFiles()
          Deletes all the temporary files created with createTemporaryFile.
static java.io.File getDefaultApplicationFolder()
          Returns default application folder.
static boolean isLinux()
          Returns true if current operating is Linux.
static boolean isMacOSX()
          Returns true if current operating is Mac OS X.
static boolean isMacOSXLeopardOrSuperior()
          Returns true if current operating is Mac OS X 10.5 or superior.
static boolean isWindows()
          Returns true if current operating is Windows.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isLinux

public static boolean isLinux()
Returns true if current operating is Linux.


isWindows

public static boolean isWindows()
Returns true if current operating is Windows.


isMacOSX

public static boolean isMacOSX()
Returns true if current operating is Mac OS X.


isMacOSXLeopardOrSuperior

public static boolean isMacOSXLeopardOrSuperior()
Returns true if current operating is Mac OS X 10.5 or superior.


createTemporaryFile

public static java.io.File createTemporaryFile(java.lang.String prefix,
                                               java.lang.String suffix)
                                        throws java.io.IOException
Returns a temporary file that will be deleted when JVM will exit.

Throws:
java.io.IOException - if the file couldn't be created

deleteTemporaryFiles

public static void deleteTemporaryFiles()
Deletes all the temporary files created with createTemporaryFile.


getDefaultApplicationFolder

public static java.io.File getDefaultApplicationFolder()
                                                throws java.io.IOException
Returns default application folder.

Throws:
java.io.IOException

Sweet Home 3D 3.4

? Copyrights 2006-2011 eTeks - All rights reserved
Distributed under GNU General Public License