org.kuali.common.impex.data.service.impl
Class DataHandler

java.lang.Object
  extended by org.kuali.common.impex.data.service.impl.DataHandler

public class DataHandler
extends Object


Field Summary
static String CARRIAGE_RETURN
           
protected static String COMMA
           
protected static String DOUBLE_QUOTE
           
protected static String FS
           
protected static String LF
           
static String MPX_CARRIAGE_RETURN
           
static String MPX_DATE_FORMAT
           
static String MPX_EXTENSION
           
static String MPX_LINEFEED
           
static String MPX_NULL
           
static String MPX_QUOTE
           
 
Constructor Summary
DataHandler()
           
 
Method Summary
static void doData(DumpProgress progress)
           
static void finishData(DumpProgress exportProgress)
           
protected static void formatMpx(List<List<String>> rows)
           
static String formatMpx(String s)
           
static File getFileForTable(DumpDataContext context, String tableName)
           
protected static String getFilename(File workingDir, String tableName)
           
protected static String getLine(List<String> row)
          Comma separated, all values enclosed in double quotes, always terminated by a linefeed
static void startData(DumpProgress progress)
           
protected static void writeRows(List<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
 

Field Detail

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
Constructor Detail

DataHandler

public DataHandler()
Method Detail

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.