public class EntriesAsCSV extends Object
Constructor and Description |
---|
EntriesAsCSV(String userId,
String... formats) |
Modifier and Type | Method and Description |
---|---|
ByteArrayOutputStream |
customize(EntrySelection selection) |
protected String[] |
getCSVHeaders(EntryField[] fields) |
protected EntryField[] |
getEntryFields() |
Path |
getFilePath() |
protected void |
putZipEntry(ByteArrayWrapper wrapper,
ZipOutputStream zos) |
boolean |
setEntries(List<Long> entries,
EntryField... fields)
Directly set the list of entries whose fields and (optionally) sequences are to be extracted
|
boolean |
setSelectedEntries(EntrySelection selection,
EntryField... fields)
Set source of entries, extract to csv
|
public boolean setSelectedEntries(EntrySelection selection, EntryField... fields)
selection
- selection indicating source of entriesfields
- optional list of fields used to filter the datagetFilePath
false otherwisepublic boolean setEntries(List<Long> entries, EntryField... fields)
entries
- list of entry idsfields
- optional list of fields used to filter the datagetFilePath
false otherwiseprotected String[] getCSVHeaders(EntryField[] fields)
protected void putZipEntry(ByteArrayWrapper wrapper, ZipOutputStream zos)
protected EntryField[] getEntryFields()
public ByteArrayOutputStream customize(EntrySelection selection) throws IOException
IOException
public Path getFilePath()
Copyright © 2017. All rights reserved.