public class CSV extends Object
CategoryDataset
data from a CSV file.
This initial version is very basic, and won't handle errors in the data
file very gracefully.Constructor and Description |
---|
CSV()
Creates a new CSV reader where the field delimiter is a comma, and the
text delimiter is a double-quote.
|
CSV(char fieldDelimiter,
char textDelimiter)
Creates a new reader with the specified field and text delimiters.
|
Modifier and Type | Method and Description |
---|---|
CategoryDataset |
readCategoryDataset(Reader in)
Reads a
CategoryDataset from a CSV file or input source. |
public CSV()
public CSV(char fieldDelimiter, char textDelimiter)
fieldDelimiter
- the field delimiter (usually a comma, semi-colon,
colon, tab or space).textDelimiter
- the text delimiter (usually a single or double
quote).public CategoryDataset readCategoryDataset(Reader in) throws IOException
CategoryDataset
from a CSV file or input source.in
- the input source.IOException
- if there is an I/O problem.Jas4pp 1.5 © Java Analysis Studio for Particle Physics