Class CsvParser
- java.lang.Object
-
- ch.ethz.matsim.socialnetworkgeneration.utils.CsvParser
-
- All Implemented Interfaces:
AutoCloseable
public class CsvParser extends Object implements AutoCloseable
- Author:
- thibautd
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()doublegetDoubleField(String name)<E extends Enum<E>>
EgetEnumField(String name, Class<E> clazz)StringgetField(String name)<T> org.matsim.api.core.v01.Id<T>getIdField(String name, Class<T> clazz)intgetIntField(String name)CsvUtils.TitleLinegetTitleLine()booleannextLine()
-
-
-
Constructor Detail
-
CsvParser
public CsvParser(char sep, char quote, String file) throws IOException- Throws:
IOException
-
-
Method Detail
-
getTitleLine
public CsvUtils.TitleLine getTitleLine()
-
nextLine
public boolean nextLine() throws IOException- Throws:
IOException
-
getDoubleField
public double getDoubleField(String name)
-
getIntField
public int getIntField(String name)
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
-