Package com.norconex.commons.lang
Class OsResource<T>
java.lang.Object
com.norconex.commons.lang.OsResource<T>
- Type Parameters:
T- resource type
Provides an abstraction over operating-system specific resources (e.g. paths). Simply a convenience class saving you from checking for the OS yourself to figure out which resource to use, for major OSes.
A different resource can be specified for all OSes but only one will actually get set, based on the currently detected OS. OSes are mutually exclusive. For instance, Unix does not include Linux or Mac operating systems.
- Since:
- 2.0.0
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
OsResource
public OsResource()
-
-
Method Details
-
win
-
unix
-
linux
-
mac
-
get
-