Package com.deque.html.axecore.providers
Class FileAxeScriptProvider
- java.lang.Object
-
- com.deque.html.axecore.providers.FileAxeScriptProvider
-
- All Implemented Interfaces:
IAxeScriptProvider
public class FileAxeScriptProvider extends Object implements IAxeScriptProvider
An accessibility script provider.
-
-
Constructor Summary
Constructors Constructor Description FileAxeScriptProvider(String newFilePath)Sets the new file path for the file script provider.
-
-
-
Constructor Detail
-
FileAxeScriptProvider
public FileAxeScriptProvider(String newFilePath) throws FileNotFoundException
Sets the new file path for the file script provider.- Parameters:
newFilePath- the file path to be set- Throws:
FileNotFoundException- if the file is not found
-
-
Method Detail
-
getScript
public String getScript() throws OperationNotSupportedException, IOException
gets the script from a file.- Specified by:
getScriptin interfaceIAxeScriptProvider- Returns:
- the string of the script fro ma file
- Throws:
OperationNotSupportedException- if the file doesn't exist yetIOException- thrown if error is encountered
-
-