java.lang.Object
org.cardanofoundation.lob.app.organisation.service.csv.CsvParser<T>
@Service
public class CsvParser<T>
extends Object
-
Constructor Summary
Constructors
-
Method Summary
io.vavr.control.Either<org.zalando.problem.Problem,List<T>>
io.vavr.control.Either<org.zalando.problem.Problem,List<T>>
parseCsv(org.springframework.web.multipart.MultipartFile file,
Class<T> type)
static <T> T
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CsvParser
public CsvParser()
-
Method Details
-
parseCsv
public io.vavr.control.Either<org.zalando.problem.Problem,List<T>> parseCsv(org.springframework.web.multipart.MultipartFile file,
Class<T> type)
-
parseCsv
public io.vavr.control.Either<org.zalando.problem.Problem,List<T>> parseCsv(byte[] file,
Class<T> type)
-
-
sanitizeBean
public static <T> T sanitizeBean(T bean)