org.apache.jena.atlas.csv
Class CSVParser

java.lang.Object
  extended by org.apache.jena.atlas.csv.CSVParser
All Implemented Interfaces:
Iterable<List<String>>

public class CSVParser
extends Object
implements Iterable<List<String>>

Written specifically to handle SPARQL results CSv files. Replace with a real parser (e.g. Apache Commons CSV when released)


Constructor Summary
CSVParser(CSVTokenIterator iter)
           
 
Method Summary
static CSVParser create(InputStream input)
           
static CSVParser create(Reader input)
           
static CSVParser create(String filename)
           
 Iterator<List<String>> iterator()
           
 List<String> parse1()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSVParser

public CSVParser(CSVTokenIterator iter)
Method Detail

create

public static CSVParser create(String filename)

create

public static CSVParser create(InputStream input)

create

public static CSVParser create(Reader input)

iterator

public Iterator<List<String>> iterator()
Specified by:
iterator in interface Iterable<List<String>>

parse1

public List<String> parse1()


Licenced under the Apache License, Version 2.0