Class CSVEventDrivenImporter

    • Constructor Detail

      • CSVEventDrivenImporter

        public CSVEventDrivenImporter()
        Constructs a new importer using the CSVFormat.ADJACENCY_LIST format as default.
      • CSVEventDrivenImporter

        public CSVEventDrivenImporter​(CSVFormat format)
        Constructs a new importer.
        Parameters:
        format - format to use out of the supported ones
      • CSVEventDrivenImporter

        public CSVEventDrivenImporter​(CSVFormat format,
                                      char delimiter)
        Constructs a new importer.
        Parameters:
        format - format to use out of the supported ones
        delimiter - delimiter to use (comma, semicolon, pipe, etc.)
    • Method Detail

      • getFormat

        public CSVFormat getFormat()
        Get the format that the importer is using.
        Returns:
        the input format
      • setFormat

        public void setFormat​(CSVFormat format)
        Set the format of the importer
        Parameters:
        format - the format to use
      • getDelimiter

        public char getDelimiter()
        Get the delimiter (comma, semicolon, pipe, etc).
        Returns:
        the delimiter
      • setDelimiter

        public void setDelimiter​(char delimiter)
        Set the delimiter (comma, semicolon, pipe, etc).
        Parameters:
        delimiter - the delimiter to use
      • isParameter

        public boolean isParameter​(CSVFormat.Parameter p)
        Return if a particular parameter of the exporter is enabled
        Parameters:
        p - the parameter
        Returns:
        true if the parameter is set, false otherwise
      • setParameter

        public void setParameter​(CSVFormat.Parameter p,
                                 boolean value)
        Set the value of a parameter of the exporter
        Parameters:
        p - the parameter
        value - the value to set