public class LocatorImpl extends java.lang.Object implements ExecutableLocator
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_SEARCH_PATH |
Constructor and Description |
---|
LocatorImpl()
Default constructor for SCR.
|
LocatorImpl(java.lang.String[] searchPath)
Constructor for non-OSGi component usage.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPath(java.lang.String cmd)
Returns the absolute path to an executable, if found,
or
null if it could not be found. |
static java.lang.String[] |
getPathEnv() |
public static final java.lang.String PROP_SEARCH_PATH
public LocatorImpl()
public LocatorImpl(java.lang.String[] searchPath)
searchPath
- list of search pathspublic java.lang.String getPath(java.lang.String cmd)
ExecutableLocator
null
if it could not be found.getPath
in interface ExecutableLocator
cmd
- the name of an executable file (e.g. "ffmpeg")null
public static java.lang.String[] getPathEnv()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"