Class POSIXFactory
java.lang.Object
jnr.posix.POSIXFactory
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static jnr.ffi.mapper.FunctionMapperstatic POSIXGet a pure-Java POSIX instance.static POSIXgetJavaPOSIX(POSIXHandler handler) Get a pure-Java POSIX instance.static POSIXGet a POSIX instance.static POSIXgetNativePOSIX(POSIXHandler handler) Get a POSIX instance.static POSIXgetPOSIX()This will useDefaultPOSIXHandlerand the native POSIX implementation, falling back on the pure-Java implementation if native support is not available.static POSIXgetPOSIX(POSIXHandler handler, boolean useNativePOSIX) Get a POSIX instance.private static String[]static POSIXloadAixPOSIX(POSIXHandler handler) static POSIXloadDragonFlyPOSIX(POSIXHandler handler) static POSIXloadFreeBSDPOSIX(POSIXHandler handler) static POSIXloadLinuxPOSIX(POSIXHandler handler) static POSIXloadMacOSPOSIX(POSIXHandler handler) private static POSIXloadNativePOSIX(POSIXHandler handler) static POSIXloadOpenBSDPOSIX(POSIXHandler handler) (package private) static POSIXloadPOSIX(POSIXHandler handler, boolean useNativePOSIX) static POSIXloadSolarisPOSIX(POSIXHandler handler) static POSIXloadWindowsPOSIX(POSIXHandler handler) options()
-
Field Details
-
BOGUS_HACK
-
NATIVE_PLATFORM
public static final jnr.ffi.Platform NATIVE_PLATFORM -
STANDARD_C_LIBRARY_NAME
-
-
Constructor Details
-
POSIXFactory
public POSIXFactory()
-
-
Method Details
-
getPOSIX
Get a POSIX instance. If useNativePosix is true, this works just like POSIXFactory#getPOSIX(). If useNativePosix is false, this works like POSIXFactory#getJavaPOSIX()- Parameters:
handler- a POSIXHandler implementationuseNativePOSIX- whether to attempt to use native code for better functionality- Returns:
- a POSIX implementation, attempting to use native code if useNativePosix is true
-
getPOSIX
This will useDefaultPOSIXHandlerand the native POSIX implementation, falling back on the pure-Java implementation if native support is not available.- Returns:
- a POSIX implementation, native if possible and pure-Java otherwise.
-
getJavaPOSIX
Get a pure-Java POSIX instance. Functionality will be limited to that which can be provided by pure-Java/JDK features or shelling out to external commands.- Parameters:
handler- a POSIXHandler implementation- Returns:
- a pure-Java POSIX implementation
-
getJavaPOSIX
Get a pure-Java POSIX instance. Functionality will be limited to that which can be provided by pure-Java/JDK features or shelling out to external commands.- Returns:
- a pure-Java POSIX implementation
-
getNativePOSIX
Get a POSIX instance. If a true native implementation can't be loaded, allow that error to propagate rather than falling back on the pure-Java version.- Parameters:
handler- a POSIXHandler implementation- Returns:
- a native POSIX implementation, raising errors if the native version can't load
-
getNativePOSIX
Get a POSIX instance. If a true native implementation can't be loaded, allow that error to propagate rather than falling back on the pure-Java version.- Returns:
- a native POSIX implementation, raising errors if the native version can't load
-
loadPOSIX
-
loadNativePOSIX
-
loadLinuxPOSIX
-
loadMacOSPOSIX
-
loadSolarisPOSIX
-
loadFreeBSDPOSIX
-
loadDragonFlyPOSIX
-
loadOpenBSDPOSIX
-
loadWindowsPOSIX
-
loadAixPOSIX
-
libraries
-
libraryInterface
-
functionMapper
private static jnr.ffi.mapper.FunctionMapper functionMapper() -
options
-