org.kuali.common.impex.data.service.impl
Class DataHandler
java.lang.Object
org.kuali.common.impex.data.service.impl.DataHandler
public class DataHandler
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FS
protected static final String FS
LF
protected static final String LF
- See Also:
- Constant Field Values
DOUBLE_QUOTE
protected static final String DOUBLE_QUOTE
- See Also:
- Constant Field Values
COMMA
protected static final String COMMA
- See Also:
- Constant Field Values
MPX_EXTENSION
public static final String MPX_EXTENSION
- See Also:
- Constant Field Values
CARRIAGE_RETURN
public static final String CARRIAGE_RETURN
- See Also:
- Constant Field Values
MPX_NULL
public static final String MPX_NULL
- See Also:
- Constant Field Values
MPX_CARRIAGE_RETURN
public static final String MPX_CARRIAGE_RETURN
- See Also:
- Constant Field Values
MPX_LINEFEED
public static final String MPX_LINEFEED
- See Also:
- Constant Field Values
MPX_QUOTE
public static final String MPX_QUOTE
- See Also:
- Constant Field Values
MPX_DATE_FORMAT
public static final String MPX_DATE_FORMAT
- See Also:
- Constant Field Values
DataHandler
public DataHandler()
getFileForTable
public static File getFileForTable(DumpDataContext context,
String tableName)
getFilename
protected static String getFilename(File workingDir,
String tableName)
startData
public static void startData(DumpProgress progress)
throws IOException
- Throws:
IOException
doData
public static void doData(DumpProgress progress)
throws IOException
- Throws:
IOException
writeRows
protected static void writeRows(List<List<String>> rows,
String encoding,
OutputStream out)
throws IOException
- Throws:
IOException
getLine
protected static String getLine(List<String> row)
- Comma separated, all values enclosed in double quotes, always terminated by a linefeed
finishData
public static void finishData(DumpProgress exportProgress)
throws IOException
- Throws:
IOException
formatMpx
protected static void formatMpx(List<List<String>> rows)
formatMpx
public static String formatMpx(String s)
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.