com.ibatis.common.flatfile
Class FixedColFlatFileIn

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

public class FixedColFlatFileIn
extends java.lang.Object
implements FlatFileIn

Author:
clinton_begin

Field Summary
private  int[] coldef
           
private  int linelength
           
private  java.io.LineNumberReader reader
           
private  java.util.ArrayList values
           
 
Constructor Summary
FixedColFlatFileIn(java.lang.String filename, int[] coldef)
          Creates new FixedColFlatFileIn
 
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

reader

private java.io.LineNumberReader reader

values

private java.util.ArrayList values

coldef

private int[] coldef

linelength

private int linelength
Constructor Detail

FixedColFlatFileIn

public FixedColFlatFileIn(java.lang.String filename,
                          int[] coldef)
                   throws java.io.IOException
Creates new FixedColFlatFileIn

Method Detail

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

nextRecord

public boolean nextRecord()
                   throws java.io.IOException
Specified by:
nextRecord in interface FlatFileIn
Throws:
java.io.IOException