org.deegree.io.csv
Class CSVReader
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CSVReader
public CSVReader(java.lang.String name,
boolean ignoreFirstLine)
throws java.io.IOException
- Parameters:
name
- ignoreFirstLine
-
- Throws:
java.io.IOException
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
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org