Class CSVDataSource

  • All Implemented Interfaces:
    DataSourceIF

    public class CSVDataSource
    extends Object
    implements DataSourceIF
    INTERNAL: Data source that reads CSV files from a directory.
    • Field Detail

      • path

        protected File path
      • encoding

        protected String encoding
      • separator

        protected char separator
      • quoteCharacter

        protected char quoteCharacter
      • ignoreFirstLines

        protected int ignoreFirstLines
    • Method Detail

      • setPath

        protected void setPath​(String _path)
      • setEncoding

        protected void setEncoding​(String encoding)
      • setSeparator

        protected void setSeparator​(char separator)
      • setQuoteCharacter

        protected void setQuoteCharacter​(char quoteCharacter)
      • setIgnoreFirstLines

        protected void setIgnoreFirstLines​(int ignoreFirstLines)
      • getRelations

        public Collection<Relation> getRelations()
        Description copied from interface: DataSourceIF
        INTERNAL: Returns the relations that the data source knows of. The collection return contains Relation instances.
        Specified by:
        getRelations in interface DataSourceIF
      • close

        public void close()
        Description copied from interface: DataSourceIF
        INTERNAL: Closes the data source so that it can release any open resources.
        Specified by:
        close in interface DataSourceIF