com.ibatis.common.flatfile
Class DelimitedFlatFileIn

java.lang.Object
  extended bycom.ibatis.common.flatfile.DelimitedFlatFileIn
All Implemented Interfaces:
FlatFileIn

public class DelimitedFlatFileIn
extends java.lang.Object
implements FlatFileIn

Author:
clinton_begin

Field Summary
private  int colCount
           
private  java.lang.String delimiter
           
private  java.io.LineNumberReader reader
           
private static int UNKNOWN_COLUM_COUNT
           
private  java.util.ArrayList values
           
 
Constructor Summary
DelimitedFlatFileIn(java.lang.String filename, java.lang.String delimiter)
          Creates new DelimitedFlatFileIn
 
Method Summary
 void close()
           
 int getColumnCount()
           
 java.lang.String getValueAt(int col)
           
 boolean nextRecord()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

DelimitedFlatFileIn

public DelimitedFlatFileIn(java.lang.String filename,
                           java.lang.String delimiter)
                    throws java.io.IOException
Creates new DelimitedFlatFileIn

Method Detail

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