org.deegree.io.csv
Class CSVReader
java.lang.Object
  
org.deegree.io.csv.CSVReader
public class CSVReader
- extends Object
 
CSVReader
- Version:
 
  - $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Thu, 18 Jun 2009) $
 
- Author:
 
  - Andreas Schmitz, last edited by: $Author: mschneider $
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
CSVReader
public CSVReader(String name,
                 boolean ignoreFirstLine)
          throws IOException
- Parameters:
 name - ignoreFirstLine - 
- Throws:
 IOException
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
 
                an open source project founded by lat/lon, Bonn, Germany.
                    For more information visit: http://www.deegree.org