Java Is Windows isWinFileSystem()

Here you can find the source of isWinFileSystem()

Description

Determines if Windows file system is in use.

License

Open Source License

Return

true if the system is Windows

Declaration

static boolean isWinFileSystem() 

Method Source Code


//package com.java2s;
import java.io.File;

public class Main {
    private static final char SYSTEM_SEPARATOR = File.separatorChar;
    private static final char WINDOWS_SEPARATOR = '\\';

    /**//from   w w w.  j ava  2 s  . c o  m
     * Determines if Windows file system is in use.
     * @return true if the system is Windows
     */
    static boolean isWinFileSystem() {
        return SYSTEM_SEPARATOR == WINDOWS_SEPARATOR;
    }
}

Related

  1. isWindowsAdministrator()
  2. isWindowsCygwin()
  3. isWindowsFileSep()
  4. isWindowsFileSystem()
  5. isWindowsInstall()