Top Description Inners Constructors Methods
io.smallrye.common.os

public final Class Linux

extends Object
Class Inheritance
Imports
java.io.IOException, java.nio.file.Files, .Path

Utilities pertaining to the Linux operating system.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
Linux.WSL

Lazy constants for WSL.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static boolean

Returns:

true if the operating system is the Windows Subsystem for Linux, or false if it is not
isWSL
()

Returns true if the operating system is the Windows Subsystem for Linux, or false if it is not.

public static boolean

Returns:

true if the WSL version is 2 or later, or false if it is not
isWSLv2
()

Returns true if the WSL version is 2 or later, or false if it is not.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Linuxback to summary
private Linux()

Method Detail

isWSLback to summary
public static boolean isWSL()

Returns true if the operating system is the Windows Subsystem for Linux, or false if it is not.

Returns:boolean

true if the operating system is the Windows Subsystem for Linux, or false if it is not

isWSLv2back to summary
public static boolean isWSLv2()

Returns true if the WSL version is 2 or later, or false if it is not.

Returns:boolean

true if the WSL version is 2 or later, or false if it is not

io.smallrye.common.os back to summary

private final Class Linux.WSL

extends Object
Class Inheritance

Lazy constants for WSL.

Field Summary

Modifier and TypeField and Description
private static final int

Constructor Summary

AccessConstructor and Description
private
WSL()

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

versionback to summary
private static final int version

Constructor Detail

WSLback to summary
private WSL()