public class TableReader extends Object
String
objects.Constructor and Description |
---|
TableReader() |
Modifier and Type | Method and Description |
---|---|
static String[][] |
readTable(File file,
char separator) |
static String[][] |
readTable(InputStream stream,
char separator)
Reads text data into a two dimensional array with
String objects. |
static String[][] |
readTable(URL url,
char separator) |
public TableReader()
public static String[][] readTable(URL url, char separator) throws IOException
IOException
public static String[][] readTable(File file, char separator) throws IOException
IOException
public static String[][] readTable(InputStream stream, char separator) throws IOException
String
objects. If an empty file is read
the returned array has one element containing an empty String
.stream
- the stream to read the text data fromseparator
- the column separatorIOException