public class VCSVWeb
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static double[] |
getColumnOfNumbers(java.lang.String urlPath,
int col)
Returns an array of numbers that exist in a certain column of a CSV file.
|
static java.lang.String[] |
getColumnOfStrings(java.lang.String urlPath,
int col)
Returns an array of numbers that exist in a certain column of a CSV file.
|
static int |
getNumCols(java.lang.String urlPath)
Returns the number of columns that contain data in a CSV file.
|
static int |
getNumRows(java.lang.String urlPath)
Returns the number of rows that contain data in a CSV file.
|
static double[] |
getRowOfNumbers(java.lang.String urlPath,
int row)
Returns an array of numbers that exist in a certain row of a CSV file.
|
public static int getNumRows(java.lang.String urlPath)
urlPath
- the URL to the CSV file on the web.public static int getNumCols(java.lang.String urlPath)
urlPath
- the URL to the CSV file on the web.public static double[] getRowOfNumbers(java.lang.String urlPath, int row)
This method throws java.lang.NumberFormatException
when the
input column contains a character that cannot be converted into a
double
.
urlPath
- the URL to the CSV file on the web.row
- the input row number (0-based index logic).public static java.lang.String[] getColumnOfStrings(java.lang.String urlPath, int col)
This method throws java.lang.NumberFormatException
when the
input column contains a character that cannot be converted into a
double
.
urlPath
- the URL to the CSV file on the web.col
- the input column number (0-based index logic).public static double[] getColumnOfNumbers(java.lang.String urlPath, int col)
This method throws java.lang.NumberFormatException
when the
input column contains a character that cannot be converted into a
double
.
urlPath
- the URL to the CSV file on the web.col
- the input column number (0-based index logic).