Java Is Unix isOsUnix()

Here you can find the source of isOsUnix()

Description

Test for Unix (to include MacOS), vice Windows.

License

Open Source License

Declaration

public static boolean isOsUnix() 

Method Source Code


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

public class Main {
    private static final String FORWARD_SLASH = "/";

    /**/*from w  w  w  .j  a  v a2  s  .  c  o  m*/
     * Test for Unix (to include MacOS), vice Windows.
     */
    public static boolean isOsUnix() {
        return File.separator.equals(FORWARD_SLASH);
    }
}

Related

  1. isSystemUnix()
  2. isUnix()
  3. isUnix()
  4. isUnix()