public class OrderReader
extends java.lang.Object
Constructor and Description |
---|
OrderReader(java.io.BufferedReader csvExport)
Constructs a new OrderReader with the suitable CsvOrderBean for the
provided BufferedReader.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<com.opencsv.exceptions.CsvException> |
getExpections() |
int |
getLoadErrorNumber()
Returns the number of orders with load error.
|
int |
getLoadSuccessfullNumber()
Returns the number of orders with load error.
|
java.util.List<Order> |
getOrderList() |
int |
getTotalOrders()
Returns the total number of orders in the input file.
|
public OrderReader(java.io.BufferedReader csvExport) throws OrderProcessException
OrderProcessException
- in case no suitable CsvOrderBean implementation that can read
the buffer could be found.public java.util.List<com.opencsv.exceptions.CsvException> getExpections()
public int getLoadErrorNumber()
public int getLoadSuccessfullNumber()
public java.util.List<Order> getOrderList()
public int getTotalOrders()