Java Is Windows isWindowsFileSystem()

Here you can find the source of isWindowsFileSystem()

Description

is Windows File System

License

Open Source License

Declaration

public static boolean isWindowsFileSystem() 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2004, 2014 QNX Software Systems and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors://ww  w  .  ja  va  2 s.  com
 *     QNX Software Systems - initial API and implementation
 *     Markus Schorn (Wind River Systems)
 *     Ed Swartz (Nokia)
 *     Sergey Prigogin (Google)
 *     James Blackburn (Broadcom Corp.)
 *******************************************************************************/

public class Main {
    /** Detect whether we're running on Windows (as IPath does) */
    private static final boolean WINDOWS = java.io.File.separatorChar == '\\';

    public static boolean isWindowsFileSystem() {
        return WINDOWS;
    }
}

Related

  1. isWindows()
  2. isWindows64JREAvailable()
  3. isWindowsAdministrator()
  4. isWindowsCygwin()
  5. isWindowsFileSep()
  6. isWindowsInstall()
  7. isWinFileSystem()