Back to project page texthem.
The source code is released under:
GNU General Public License
If you think the Android project texthem listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package au.com.bytecode.opencsv; /* w ww . j a v a2 s . co m*/ import java.io.IOException; import java.util.Iterator; public class CSVIterator implements Iterator<String[]> { private CSVReader reader; private String[] nextLine; public CSVIterator(CSVReader reader) throws IOException { this.reader = reader; nextLine = reader.readNext(); } public boolean hasNext() { return nextLine != null; } public String[] next() { String[] temp = nextLine; try { nextLine = reader.readNext(); } catch (IOException e) { throw new RuntimeException(e); } return temp; } public void remove() { throw new UnsupportedOperationException("This is a read only iterator."); } }