Package org.yamcs.filetransfer
Class CsvListingParser
java.lang.Object
org.yamcs.filetransfer.FileListingParser
org.yamcs.filetransfer.CsvListingParser
Parses a directory listing from Comma Separated Values (CSV) formatted data.
Uses configurable mappings to associate columns to the correct file properties.
Timestamps can be formatted as numbers or as strings in the ISO format.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetSpec()
void
init
(String yamcsInstance, YConfiguration config) Parse the provided text data into a list of RemoteFiles
-
Constructor Details
-
CsvListingParser
public CsvListingParser()
-
-
Method Details
-
getSpec
- Specified by:
getSpec
in classFileListingParser
-
init
- Overrides:
init
in classFileListingParser
-
parse
Description copied from class:FileListingParser
Parse the provided text data into a list of RemoteFiles- Specified by:
parse
in classFileListingParser
- Parameters:
remotePath
- remote path where the file listing is locateddata
- text data (e.g. coming from a file)- Returns:
- parsed remote files and directories
-