org.databene.document.csv
Class ConvertingCSVParser<E>
java.lang.Object
org.databene.document.csv.ConvertingCSVParser<E>
- All Implemented Interfaces:
- java.io.Closeable, java.util.Iterator<E>, HeavyweightIterator<E>
public class ConvertingCSVParser<E>
- extends java.lang.Object
- implements HeavyweightIterator<E>
Parses CSV files and converts the row to the desired target type.
Created at 25.04.2008 18:49:50
- Since:
- 0.4.2
- Author:
- Volker Bergmann
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConvertingCSVParser
public ConvertingCSVParser(java.lang.String uri,
Converter<java.lang.String[],E> rowConverter)
throws java.io.IOException
- Throws:
java.io.IOException
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface java.util.Iterator<E>
next
public E next()
- Specified by:
next in interface java.util.Iterator<E>
remove
public void remove()
- Specified by:
remove in interface java.util.Iterator<E>
close
public void close()
- Specified by:
close in interface java.io.Closeable
parse
public static <T> java.util.List<T> parse(java.lang.String uri,
Converter<java.lang.String[],T> rowConverter)
throws java.io.IOException
- Throws:
java.io.IOException
parse
public static <T> java.util.List<T> parse(java.lang.String uri,
Converter<java.lang.String[],T> rowConverter,
java.util.List<T> list)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2010. All Rights Reserved.