Package com.deque.html.axecore.providers
Class EmbeddedResourceProvider
- java.lang.Object
-
- com.deque.html.axecore.providers.EmbeddedResourceProvider
-
public final class EmbeddedResourceProvider extends Object
Resource provider that reads from a file.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringreadEmbeddedFile(String fileName)Reads a provided file and transfers it to a string.
-
-
-
Method Detail
-
readEmbeddedFile
public static String readEmbeddedFile(String fileName) throws IOException
Reads a provided file and transfers it to a string.- Parameters:
fileName- the name of the file to be read.- Returns:
- a string of the file contents
- Throws:
IOException- if the reading of the file fails
-
-