All Downloads are FREE. Search and download functionalities are using the official Maven repository.

poussecafe.doc.SystemDependentInformation Maven / Gradle / Ivy

There is a newer version: 0.29.0
Show newest version
package poussecafe.doc;

public class SystemDependentInformation {

    private SystemDependentInformation() {

    }

    public static String pathElementSeparator() {
        if(isWindows()) {
            return ";";
        } else {
            return ":";
        }
    }

    private static boolean isWindows() {
        return OPERATING_SYSTEM_NAME.startsWith("Windows");
    }

    private static final String OPERATING_SYSTEM_NAME = System.getProperty("os.name");

    public static String pathElementSeparatorRegEx() {
        if(isWindows()) {
            return ";";
        } else {
            return "\\:";
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy