de.fuberlin.wiwiss.d2rq.helpers
Class CSVParser

java.lang.Object
  extended byde.fuberlin.wiwiss.d2rq.helpers.CSVParser

public class CSVParser
extends java.lang.Object

Parses the contents of a CSV file into a Map. The CVS file must contain exactly two columns. Keys come from the first, values from the second.

History:
08-03-2004: Initial version of this class.

Version:
V0.2
Author:
Richard Cyganiak

Field Summary
private  CSV csvLineParser
           
private  java.io.BufferedReader reader
           
private  java.lang.String url
           
 
Constructor Summary
CSVParser(java.io.Reader reader)
           
CSVParser(java.lang.String url)
           
 
Method Summary
 java.util.Map parse()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reader

private java.io.BufferedReader reader

csvLineParser

private CSV csvLineParser

url

private java.lang.String url
Constructor Detail

CSVParser

public CSVParser(java.io.Reader reader)

CSVParser

public CSVParser(java.lang.String url)
Method Detail

parse

public java.util.Map parse()