public final class ReaderUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.String> |
readLines(android.content.Context context,
int rawResId)
Reads lines from given raw resource.
|
static java.util.List<java.lang.String> |
readLines(java.io.InputStream inputStream)
Reads lines from input stream.
|
public static java.util.List<java.lang.String> readLines(java.io.InputStream inputStream)
inputStream
- Input streamreadLines(Context, int)
public static java.util.List<java.lang.String> readLines(android.content.Context context, @RawRes int rawResId)
readLines(InputStream)
and
closes the stream afterwards.context
- Context to retrieve the resourcerawResId
- Raw resource ID, which is a name of a file in /res/raw
folder without extension