public class CsvFilePersisterService extends Object implements CollectionPersisterService<String,List<String>>
| Constructor and Description |
|---|
CsvFilePersisterService(String csvFile) |
| Modifier and Type | Method and Description |
|---|---|
Set<PosixFilePermission> |
getCsvPermissions() |
void |
init() |
boolean |
persist(Collection<List<String>> collectionData)
Persists the provided collection of data.
|
boolean |
persistMap(Map<String,List<String>> mapData)
Persists the provided map of data.
|
public CsvFilePersisterService(String csvFile)
public Set<PosixFilePermission> getCsvPermissions()
@Inject
public void init()
throws IOException
IOExceptionpublic boolean persist(Collection<List<String>> collectionData)
CollectionPersisterServicepersist in interface CollectionPersisterService<String,List<String>>collectionData - the data to be persistedpublic boolean persistMap(Map<String,List<String>> mapData)
CollectionPersisterServicepersistMap in interface CollectionPersisterService<String,List<String>>mapData - the data to be persisted.Copyright © 2022 Apache Software Foundation. All rights reserved.