North Concepts
home » data pipeline » examples » Write my own data writer

Write my own data writer

/*
* Copyright (c) 2006-2008 North Concepts Inc.  All rights reserved.
* Proprietary and Confidential.  Use is subject to license terms.
*
* http://northconcepts.com/data-pipeline/licensing/
*
*/
package com.northconcepts.datapipeline.examples.cookbook.customization;

import java.io.File;

import com.northconcepts.datapipeline.core.DataReader;
import com.northconcepts.datapipeline.core.DataWriter;
import com.northconcepts.datapipeline.csv.CSVReader;
import com.northconcepts.datapipeline.job.JobTemplate;

public class WriteMyOwnDataWriter {
   
   
public static void main(String[] args) throws Throwable {
       
DataReader reader = new CSVReader(new File("credit-balance.csv"))
           
.setFieldNamesInFirstRow(true);
   
        DataWriter writer =
new MyDataWriter();
        writer =
new MyProxyWriter(writer);

        JobTemplate.DEFAULT.transfer
(reader, writer);
   
}
   
}

back to examples index

© 2010 North Concepts Inc.   All rights reserved. | Contact Us