Java Is Windows isWindows()

Here you can find the source of isWindows()

Description

is Windows

License

Open Source License

Declaration

public static boolean isWindows() 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2006-2008 VecTrace (Zingo Andersen) 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://  w  w w.jav a2s .c  om
 *     VecTrace (Zingo Andersen) - implementation
 *     Software Balm Consulting Inc (Peter Hunnisett <peter_hge at softwarebalm dot com>) - some updates
 *     StefanC                   - some updates
 *     Stefan Groschupf          - logError
 *     Bastian Doetsch           - updates, cleanup and documentation
 *     Andrei Loskutov           - bug fixes
 *******************************************************************************/

import java.io.File;

public class Main {
    private static final boolean IS_WINDOWS = File.separatorChar == '\\';

    public static boolean isWindows() {
        return IS_WINDOWS;
    }
}

Related

  1. isWindows()
  2. isWindows()
  3. isWindows()
  4. isWindows()
  5. isWindows64JREAvailable()