public class

CSV

extends Object
java.lang.Object
   ↳ org.jfree.data.io.CSV

Class Overview

A utility class for reading CategoryDataset data from a CSV file. This initial version is very basic, and won't handle errors in the data file very gracefully.

Summary

Public Constructors
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.
Public Methods
CategoryDataset readCategoryDataset(Reader in)
Reads a CategoryDataset from a CSV file or input source.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CSV ()

Creates a new CSV reader where the field delimiter is a comma, and the text delimiter is a double-quote.

public CSV (char fieldDelimiter, char textDelimiter)

Creates a new reader with the specified field and text delimiters.

Parameters
fieldDelimiter the field delimiter (usually a comma, semi-colon, colon, tab or space).
textDelimiter the text delimiter (usually a single or double quote).

Public Methods

public CategoryDataset readCategoryDataset (Reader in)

Reads a CategoryDataset from a CSV file or input source.

Parameters
in the input source.
Returns
  • A category dataset.
Throws
IOException if there is an I/O problem.