Package org.apache.commons.lang3
Class ArchUtils
- java.lang.Object
-
- org.apache.commons.lang3.ArchUtils
-
public class ArchUtils extends java.lang.Object
An utility class for the os.arch System Property. The class defines methods for identifying the architecture of the current JVM.Important: The os.arch System Property returns the architecture used by the JVM not of the operating system.
- Since:
- 3.6
-
-
Constructor Summary
Constructors Constructor Description ArchUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Processor
getProcessor()
Returns aProcessor
object of the current JVM.static Processor
getProcessor(java.lang.String value)
Returns aProcessor
object the given valueString
.
-
-
-
Method Detail
-
getProcessor
public static Processor getProcessor()
Returns aProcessor
object of the current JVM.Important: The os.arch System Property returns the architecture used by the JVM not of the operating system.
- Returns:
- A
Processor
when supported, elsenull
.
-
getProcessor
public static Processor getProcessor(java.lang.String value)
Returns aProcessor
object the given valueString
. TheString
must be like a value returned by the os.arch System Property.- Parameters:
value
- AString
like a value returned by the os.arch System Property.- Returns:
- A
Processor
when it exists, elsenull
.
-
-