public class BMECat2CSVObjectProcessor extends java.lang.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(java.lang.String encoding,
java.lang.String datetimetimezone,
java.util.Locale loc,
java.lang.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. |
java.util.Date |
getBmecatCatalogDate() |
java.util.Map<java.lang.String,java.lang.String> |
getBmecatHeader() |
java.util.List<java.lang.String> |
getCsvFileNames() |
java.lang.String |
getGeneralCatalogInfo() |
protected BMECat2CSVObjectProcessor.MyCSVWriter |
getOut(java.lang.String fileName) |
Media |
getResultZipMedia() |
java.lang.StringBuilder |
getStatistics() |
void |
process(TagListener listener,
AbstractValueObject obj) |
protected void |
setGeneralCatalogInfo(java.lang.String info) |
public BMECat2CSVObjectProcessor(java.lang.String encoding,
java.lang.String datetimetimezone,
java.util.Locale loc,
java.lang.String numberformat,
char commentchar,
char fieldseparatorchar,
char textseparatorchar,
char collectionseparator)
public BMECat2CSVObjectProcessor()
public void finish()
throws java.io.IOException,
JaloBusinessException
process(TagListener, AbstractValueObject)! It creates a zip file of
the generated csv temp files and delete all temp files after that.java.io.IOExceptionJaloBusinessExceptionpublic void deleteTempFiles()
throws java.io.IOException
process(TagListener, AbstractValueObject)java.io.IOExceptionprotected void finish_process()
throws java.io.IOException,
JaloBusinessException
java.io.IOExceptionJaloBusinessExceptionpublic Media getResultZipMedia()
public java.util.List<java.lang.String> getCsvFileNames()
protected BMECat2CSVObjectProcessor.MyCSVWriter getOut(java.lang.String fileName)
fileName - the used filenamepublic void process(TagListener listener, AbstractValueObject obj) throws ParseAbortException
process in interface ObjectProcessorParseAbortExceptionpublic java.util.Date getBmecatCatalogDate()
protected void setGeneralCatalogInfo(java.lang.String info)
public java.util.Map<java.lang.String,java.lang.String> getBmecatHeader()
public java.lang.String getGeneralCatalogInfo()
public java.lang.StringBuilder getStatistics()
Copyright © 2018 SAP SE. All Rights Reserved.