com.ibatis.common.flatfile
Class DelimitedFlatFileIn
java.lang.Object
com.ibatis.common.flatfile.DelimitedFlatFileIn
- All Implemented Interfaces:
- FlatFileIn
- public class DelimitedFlatFileIn
- extends java.lang.Object
- implements FlatFileIn
- Author:
- clinton_begin
Constructor Summary |
DelimitedFlatFileIn(java.lang.String filename,
java.lang.String delimiter)
Creates new DelimitedFlatFileIn |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNKNOWN_COLUM_COUNT
private static final int UNKNOWN_COLUM_COUNT
- See Also:
- Constant Field Values
reader
private java.io.LineNumberReader reader
values
private java.util.ArrayList values
delimiter
private java.lang.String delimiter
colCount
private int colCount
DelimitedFlatFileIn
public DelimitedFlatFileIn(java.lang.String filename,
java.lang.String delimiter)
throws java.io.IOException
- Creates new DelimitedFlatFileIn
nextRecord
public boolean nextRecord()
throws java.io.IOException
- Specified by:
nextRecord
in interface FlatFileIn
- Throws:
java.io.IOException
getColumnCount
public int getColumnCount()
throws java.io.IOException
- Specified by:
getColumnCount
in interface FlatFileIn
- Throws:
java.io.IOException
getValueAt
public java.lang.String getValueAt(int col)
throws java.io.IOException
- Specified by:
getValueAt
in interface FlatFileIn
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface FlatFileIn
- Throws:
java.io.IOException