org.kuali.common.impex.service
Class DefaultDataHandler
java.lang.Object
org.kuali.common.impex.service.DefaultDataHandler
- All Implemented Interfaces:
- DataHandler
public class DefaultDataHandler
- extends Object
- implements DataHandler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultDataHandler
public DefaultDataHandler()
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.