public class DiskReader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> |
map |
static java.util.Random |
random |
Constructor and Description |
---|
DiskReader() |
Modifier and Type | Method and Description |
---|---|
static java.util.ArrayList<java.lang.String> |
loadArrayList(java.lang.String fileName,
boolean cache)
Used to load from file, allows caching
|
static java.lang.String |
loadAsString(java.lang.String fileName)
Used to load from file
|
static java.lang.String |
loadString(java.lang.String fileName,
int lineNumber,
boolean cache)
Used to load a string via line number lineNumber = -1 means random.
|
public static java.util.Random random
public static java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> map
public static java.util.ArrayList<java.lang.String> loadArrayList(java.lang.String fileName, boolean cache)
public static java.lang.String loadAsString(java.lang.String fileName) throws java.lang.Exception
java.lang.Exception
public static java.lang.String loadString(java.lang.String fileName, int lineNumber, boolean cache) throws java.lang.Exception
java.lang.Exception