com.ibatis.common.flatfile
Class FixedColFlatFileOut

java.lang.Object
  extended by com.ibatis.common.flatfile.FixedColFlatFileOut
All Implemented Interfaces:
FlatFileOut

public class FixedColFlatFileOut
extends java.lang.Object
implements FlatFileOut

Author:
clinton_begin

Field Summary
private  int[] coldef
           
private  int linelength
           
private  java.lang.String spaces
           
private  java.util.ArrayList values
           
private  java.io.Writer writer
           
 
Constructor Summary
FixedColFlatFileOut(java.lang.String filename, int[] coldef)
          Creates new FixedColFlatFileOut
 
Method Summary
 void close()
           
 int getColumnCount()
           
 void nextRecord()
           
 void setValueAt(int col, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

writer

private java.io.Writer writer

values

private java.util.ArrayList values

coldef

private int[] coldef

linelength

private int linelength

spaces

private java.lang.String spaces
Constructor Detail

FixedColFlatFileOut

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

Throws:
java.io.IOException
Method Detail

getColumnCount

public int getColumnCount()
                   throws java.io.IOException
Specified by:
getColumnCount in interface FlatFileOut
Throws:
java.io.IOException

setValueAt

public void setValueAt(int col,
                       java.lang.String value)
                throws java.io.IOException
Specified by:
setValueAt in interface FlatFileOut
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface FlatFileOut
Throws:
java.io.IOException

nextRecord

public void nextRecord()
                throws java.io.IOException
Specified by:
nextRecord in interface FlatFileOut
Throws:
java.io.IOException