public class BMECat2CSVObjectProcessor extends Object implements BMECatObjectProcessor
| Modifier and Type | Class and Description |
|---|---|
protected static class |
BMECat2CSVObjectProcessor.MyCSVWriter
Extended CSVWriter which keeps the given file in a link.
|
| Constructor and Description |
|---|
BMECat2CSVObjectProcessor()
The default settings for this constructor are:
encoding: "UTF-8" Date, Time and Timezone format: "yyyy-MM-dd hh:mm:ss z" Locale: system default locale Number format pattern: "#,##0.000" CSV comment char: '#' CSV field separator char: ';' CSV text separator char: '"' CSV collection separator: ',' |
BMECat2CSVObjectProcessor(String encoding,
String datetimetimezone,
Locale loc,
String numberformat,
char commentchar,
char fieldseparatorchar,
char textseparatorchar,
char collectionseparator) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteTempFiles()
Deletes all temp files which are generated during
process(TagListener, AbstractValueObject) |
protected void |
finish_process()
Creates the zip file but do not delete the generated temp files.
|
void |
finish()
This method has to be called after
process(TagListener, AbstractValueObject)! It creates a zip file of
the generated csv temp files and delete all temp files after that. |
Date |
getBmecatCatalogDate() |
Map<String,String> |
getBmecatHeader() |
List<String> |
getCsvFileNames() |
String |
getGeneralCatalogInfo() |
protected BMECat2CSVObjectProcessor.MyCSVWriter |
getOut(String fileName) |
Media |
getResultZipMedia() |
StringBuilder |
getStatistics() |
void |
process(TagListener listener,
AbstractValueObject obj) |
protected void |
setGeneralCatalogInfo(String info) |
public BMECat2CSVObjectProcessor(String encoding, String datetimetimezone, Locale loc, String numberformat, char commentchar, char fieldseparatorchar, char textseparatorchar, char collectionseparator)
public BMECat2CSVObjectProcessor()
public void finish()
throws IOException,
JaloBusinessException
process(TagListener, AbstractValueObject)! It creates a zip file of
the generated csv temp files and delete all temp files after that.IOExceptionJaloBusinessExceptionpublic void deleteTempFiles()
throws IOException
process(TagListener, AbstractValueObject)IOExceptionprotected void finish_process()
throws IOException,
JaloBusinessException
IOExceptionJaloBusinessExceptionpublic Media getResultZipMedia()
public List<String> getCsvFileNames()
protected BMECat2CSVObjectProcessor.MyCSVWriter getOut(String fileName)
fileName - the used filenamepublic void process(TagListener listener, AbstractValueObject obj) throws ParseAbortException
process in interface ObjectProcessorParseAbortExceptionpublic Date getBmecatCatalogDate()
protected void setGeneralCatalogInfo(String info)
public String getGeneralCatalogInfo()
public StringBuilder getStatistics()
Copyright © 2017 SAP SE. All Rights Reserved.