deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.io.csv
Class CSVReader

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

public class CSVReader
extends java.lang.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(java.lang.String name, boolean ignoreFirstLine)
           
 
Method Summary
static java.io.StreamTokenizer getCSVFromStringTokenizer(java.lang.String input, char separator)
           
 java.util.List<java.lang.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(java.lang.String name,
                 boolean ignoreFirstLine)
          throws java.io.IOException
Parameters:
name -
ignoreFirstLine -
Throws:
java.io.IOException
Method Detail

getHeader

public java.util.List<java.lang.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 java.io.StreamTokenizer getCSVFromStringTokenizer(java.lang.String input,
                                                                char separator)
Parameters:
input -
separator -
Returns:
a tokenizer with a stringreader as data input

parseFeatureCollection

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

deegree 2.5 (2011/06/29 09:44 build-8-official)

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