public class ResourceReaderHelper
extends java.lang.Object
| Constructor and Description |
|---|
ResourceReaderHelper() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
readAssetFile(Context ctx,
java.lang.String assetFilePath)
Reads the contents of an asset file at the specified path.
|
static java.lang.String |
readResourceFile(Context ctx,
int resourceId)
Reads the content of a resource file
|
protected static java.lang.String |
readStream(java.io.InputStream inputStream) |
public static java.lang.String readResourceFile(Context ctx,
int resourceId)
ctx - Context.resourceId - The id of the resource to read.public static java.lang.String readAssetFile(Context ctx,
java.lang.String assetFilePath)
ctx - Context.assetFilePath - The path to the file, relative to the assets/ folder of the context.protected static java.lang.String readStream(java.io.InputStream inputStream)
throws java.io.IOException
java.io.IOException