Java Is Windows isWindowsFileSep()

Here you can find the source of isWindowsFileSep()

Description

is Windows File Sep

License

Open Source License

Declaration

public static boolean isWindowsFileSep() 

Method Source Code

//package com.java2s;
/**/*from  ww  w.  ja  va2 s  .  c  o m*/
 * This class holds various utility methods.
 * 
 * @author Yanick Duchesne
 *         <dl>
 *         <dt><b>Copyright: </b>
 *         <dd>Copyright &#169; 2002-2007 <a
 *         href="http://www.sapia-oss.org">Sapia Open Source Software </a>. All
 *         Rights Reserved.</dd>
 *         </dt>
 *         <dt><b>License: </b>
 *         <dd>Read the license.txt file of the jar or visit the <a
 *         href="http://www.sapia-oss.org/license.html">license page </a> at the
 *         Sapia OSS web site</dd>
 *         </dt>
 *         </dl>
 */

import java.io.File;

public class Main {
    private static final char WIN_FILE_SEP = '\\';

    public static boolean isWindowsFileSep() {
        return File.separatorChar == WIN_FILE_SEP;
    }
}

Related

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