org.kuali.common.impex.service
Class DefaultDataHandler

java.lang.Object
  extended by org.kuali.common.impex.service.DefaultDataHandler
All Implemented Interfaces:
DataHandler

public class DefaultDataHandler
extends Object
implements DataHandler


Constructor Summary
DefaultDataHandler()
           
 
Method Summary
 void doData(DumpTableContext context)
           
 void finishData(DumpTableContext context)
           
protected  void format(List<String[]> rows)
           
protected  void format(String[] row)
           
protected  String getColumnsHeader(Column[] columns)
           
 File getFileForTable(ImpexContext context, String tableName)
           
protected  String getFilename(File workingDir, String tableName)
           
protected  String getLine(String[] row)
          Comma separated, all values enclosed in double quotes, always terminated by a linefeed
 void startData(DumpTableContext context)
           
protected  void writeRows(List<String[]> rows, String encoding, OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDataHandler

public DefaultDataHandler()
Method Detail

getFileForTable

public File getFileForTable(ImpexContext context,
                            String tableName)
Specified by:
getFileForTable in interface DataHandler

getFilename

protected String getFilename(File workingDir,
                             String tableName)

startData

public void startData(DumpTableContext context)
               throws IOException
Specified by:
startData in interface DataHandler
Throws:
IOException

doData

public void doData(DumpTableContext context)
            throws IOException
Specified by:
doData in interface DataHandler
Throws:
IOException

writeRows

protected void writeRows(List<String[]> rows,
                         String encoding,
                         OutputStream out)
                  throws IOException
Throws:
IOException

getLine

protected String getLine(String[] row)
Comma separated, all values enclosed in double quotes, always terminated by a linefeed


finishData

public void finishData(DumpTableContext context)
                throws IOException
Specified by:
finishData in interface DataHandler
Throws:
IOException

format

protected void format(List<String[]> rows)

format

protected void format(String[] row)

getColumnsHeader

protected String getColumnsHeader(Column[] columns)


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.