Package org.hl7.fhir.utilities
Class CSVProcessor
- java.lang.Object
-
- org.hl7.fhir.utilities.CSVProcessor
-
public class CSVProcessor extends Object
A file processor that reads a templated source file with markers ([%columnname%]), reads data from a CSV file and inserts data from that CSV file into those markers. Supports loops to interate through the CSV file.- Author:
- Ewout
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classCSVProcessor.DataReader
-
Constructor Summary
Constructors Constructor Description CSVProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocess()voidsetData(InputStream data)voidsetOutput(OutputStream out)voidsetSource(InputStream source)
-
-
-
Constructor Detail
-
CSVProcessor
public CSVProcessor()
-
-
Method Detail
-
setSource
public void setSource(InputStream source)
-
setData
public void setData(InputStream data) throws FHIRException, IOException
- Throws:
FHIRExceptionIOException
-
setOutput
public void setOutput(OutputStream out) throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
process
public void process() throws IOException, FHIRException
- Throws:
IOExceptionFHIRException
-
-