Package org.geotools.data.csv
Class CSVFileState
- Object
-
- CSVFileState
-
public class CSVFileState extends Object
Details from comma separated value file.
-
-
Constructor Summary
Constructors Constructor Description CSVFileState(File file)
CSVFileState(File file, URI namespace)
CSVFileState(File file, URI namespace, String typeName)
CSVFileState(File file, URI namespace, String typeName, CoordinateReferenceSystem crs)
CSVFileState(String dataInput, String typeName)
Internal constructor for testing purposes?
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CoordinateReferenceSystem
getCrs()
String[]
getCSVHeaders()
char
getEscapechar()
File
getFile()
String
getLineSeparator()
URI
getNamespace()
char
getQuotechar()
char
getSeparator()
String
getTypeName()
boolean
isQuoteAllFields()
CSVReader
openCSVReader()
void
setCrs(CoordinateReferenceSystem crs)
void
setEscapechar(char escapechar2)
void
setLineSeparator(String lineSeparator)
void
setQuoteAllFields(boolean quoteAllFields)
void
setQuotechar(char quotechar)
void
setSeparator(char separator)
-
-
-
Constructor Detail
-
CSVFileState
public CSVFileState(File file)
-
CSVFileState
public CSVFileState(File file, URI namespace, String typeName, CoordinateReferenceSystem crs)
-
-
Method Detail
-
getNamespace
public URI getNamespace()
-
getFile
public File getFile()
-
getTypeName
public String getTypeName()
-
getCrs
public CoordinateReferenceSystem getCrs()
-
setCrs
public void setCrs(CoordinateReferenceSystem crs)
-
openCSVReader
public CSVReader openCSVReader() throws IOException, CsvValidationException
- Throws:
IOException
CsvValidationException
-
getCSVHeaders
public String[] getCSVHeaders()
-
getQuotechar
public char getQuotechar()
- Returns:
- the quotechar
-
setQuotechar
public void setQuotechar(char quotechar)
- Parameters:
quotechar
- the quotechar to set
-
setEscapechar
public void setEscapechar(char escapechar2)
- Parameters:
escapechar2
-
-
getEscapechar
public char getEscapechar()
- Returns:
-
getSeparator
public char getSeparator()
- Returns:
- the separator
-
setSeparator
public void setSeparator(char separator)
- Parameters:
separator
- the separator to set
-
getLineSeparator
public String getLineSeparator()
- Returns:
- the lineSeparator
-
setLineSeparator
public void setLineSeparator(String lineSeparator)
- Parameters:
lineSeparator
- the lineSeparator to set
-
isQuoteAllFields
public boolean isQuoteAllFields()
- Returns:
- the quoteAllFields
-
setQuoteAllFields
public void setQuoteAllFields(boolean quoteAllFields)
- Parameters:
quoteAllFields
- the quoteAllFields to set
-
-