-
- All Implemented Interfaces:
public class SimplifiedResourceFileReader
Simple functions to read a byte array or a string out of a file in the resources.
-
-
Field Summary
Fields Modifier and Type Field Description private static SimplifiedResourceFileReader
instance
-
Method Summary
Modifier and Type Method Description static SimplifiedResourceFileReader
getInstance()
Get the instance. Array<byte>
getByteArrayFromResources(String path)
Get the content of a file from the resources. String
getStringFromResources(String path)
Get the content of a file from the resources. Array<String>
getAllResourcesInFolder(String path)
Get all files recursively in a folder from the resources. -
-
Method Detail
-
getInstance
static SimplifiedResourceFileReader getInstance()
Get the instance. This class is a singleton.
-
getByteArrayFromResources
Array<byte> getByteArrayFromResources(String path)
Get the content of a file from the resources.
- Parameters:
path
- The path to the file.
-
getStringFromResources
String getStringFromResources(String path)
Get the content of a file from the resources.
- Parameters:
path
- The path to the file.
-
getAllResourcesInFolder
Array<String> getAllResourcesInFolder(String path)
Get all files recursively in a folder from the resources.
- Parameters:
path
- The path to the folder.
-
-
-
-