◆ getCSVs()
File [] org.turro.financials.product.ProductImport.getCSVs |
( |
| ) |
|
Definition at line 90 of file ProductImport.java.
92 if(!root.exists()) root.mkdir();
93 return root.listFiles(
new FilenameFilter() {
95 public boolean accept(File dir, String name) {
96 return name.endsWith(
".csv");
static final String PRODUCT_IMPORT_FOLDER
◆ importFromCSV()
void org.turro.financials.product.ProductImport.importFromCSV |
( |
| ) |
|
Definition at line 77 of file ProductImport.java.
79 try(BufferedReader in =
new BufferedReader(
new InputStreamReader(
new FileInputStream(file)))) {
80 processFile(
new CSVParser(in).
getCSVs());
81 }
catch (FileNotFoundException ex) {
82 Logger.getLogger(ProductImport.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
83 }
catch (IOException ex) {
84 Logger.getLogger(ProductImport.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
◆ uploadFile()
static void org.turro.financials.product.ProductImport.uploadFile |
( |
| ) |
|
|
static |
Definition at line 64 of file ProductImport.java.
66 fw.upload(
new Command() {
68 public Object execute(Context context) {
69 Clients.showBusy(I_.get(
"Import CVS"));
70 new ProductImport().importFromCSV();
◆ PRODUCT_IMPORT_FOLDER
final String org.turro.financials.product.ProductImport.PRODUCT_IMPORT_FOLDER = "/WEB-INF/product/in" |
|
static |
The documentation for this class was generated from the following file: