deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.io.csv
Class CSVReader

java.lang.Object
  extended by org.deegree.io.csv.CSVReader

public class CSVReader
extends Object

CSVReader

Version:
$Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
Author:
Andreas Schmitz, last edited by: $Author: mschneider $

Constructor Summary
CSVReader(String name, boolean ignoreFirstLine)
           
 
Method Summary
static StreamTokenizer getCSVFromStringTokenizer(String input, char separator)
           
 List<String[]> getHeader()
           
 FeatureCollection parseFeatureCollection()
           
 void setParseGeometryProperty(boolean parseGeometryProperty)
          By default, a geometry property will be parsed.
 void setPointColumns(int x, int y)
          Also sets wkt to -1.
 void setWKTColumn(int wkt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSVReader

public CSVReader(String name,
                 boolean ignoreFirstLine)
          throws IOException
Parameters:
name -
ignoreFirstLine -
Throws:
IOException
Method Detail

getHeader

public List<String[]> getHeader()
Returns:
max. the first three lines of the file (if there are three)

setParseGeometryProperty

public void setParseGeometryProperty(boolean parseGeometryProperty)
By default, a geometry property will be parsed. Set this to false to get "simple property only" features.

Parameters:
parseGeometryProperty -

setPointColumns

public void setPointColumns(int x,
                            int y)
Also sets wkt to -1.

Parameters:
x -
y -

setWKTColumn

public void setWKTColumn(int wkt)
Parameters:
wkt - if -1, x/y will be used instead

getCSVFromStringTokenizer

public static StreamTokenizer getCSVFromStringTokenizer(String input,
                                                        char separator)
Parameters:
input -
separator -
Returns:
a tokenizer with a stringreader as data input

parseFeatureCollection

public FeatureCollection parseFeatureCollection()
                                         throws IOException
Returns:
a new feature collection
Throws:
IOException

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org