com.ibatis.common.flatfile
Class DelimitedFlatFileOut

java.lang.Object
  extended bycom.ibatis.common.flatfile.DelimitedFlatFileOut
All Implemented Interfaces:
FlatFileOut

public class DelimitedFlatFileOut
extends java.lang.Object
implements FlatFileOut

Author:
clinton_begin

Field Summary
private  int colCount
           
private  java.lang.String delimiter
           
private static int UNKNOWN_COLUM_COUNT
           
private  java.util.ArrayList values
           
private  java.io.Writer writer
           
 
Constructor Summary
DelimitedFlatFileOut(java.lang.String filename, java.lang.String delimiter)
          Creates new DelimitedFlatFileOut
 
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

UNKNOWN_COLUM_COUNT

private static final int UNKNOWN_COLUM_COUNT
See Also:
Constant Field Values

writer

private java.io.Writer writer

values

private java.util.ArrayList values

delimiter

private java.lang.String delimiter

colCount

private int colCount
Constructor Detail

DelimitedFlatFileOut

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

Method Detail

nextRecord

public void nextRecord()
                throws java.io.IOException
Specified by:
nextRecord 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

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