Class CsvListingParser

java.lang.Object
org.yamcs.filetransfer.FileListingParser
org.yamcs.filetransfer.CsvListingParser

public class CsvListingParser extends FileListingParser
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 Details

    • CsvListingParser

      public CsvListingParser()
  • Method Details

    • getSpec

      public Spec getSpec()
      Specified by:
      getSpec in class FileListingParser
    • init

      public void init(String yamcsInstance, YConfiguration config)
      Overrides:
      init in class FileListingParser
    • parse

      public List<org.yamcs.protobuf.RemoteFile> parse(String remotePath, byte[] data)
      Description copied from class: FileListingParser
      Parse the provided text data into a list of RemoteFiles
      Specified by:
      parse in class FileListingParser
      Parameters:
      remotePath - remote path where the file listing is located
      data - text data (e.g. coming from a file)
      Returns:
      parsed remote files and directories