Class CSVFileState


  • public class CSVFileState
    extends Object
    Details from comma separated value file.
    • Constructor Detail

      • CSVFileState

        public CSVFileState​(File file)
      • CSVFileState

        public CSVFileState​(File file,
                            URI namespace)
      • CSVFileState

        public CSVFileState​(File file,
                            URI namespace,
                            String typeName)
      • CSVFileState

        public CSVFileState​(String dataInput,
                            String typeName)
        Internal constructor for testing purposes?
    • Method Detail

      • getNamespace

        public URI getNamespace()
      • getFile

        public File getFile()
      • getTypeName

        public String getTypeName()
      • openCSVReader

        public CSVReader openCSVReader()
                                throws IOException,
                                       CsvValidationException
        Throws:
        IOException
        CsvValidationException
      • getCSVHeaders

        public String[] getCSVHeaders()
      • getQuotechar

        public char getQuotechar()
        Returns:
        the quotechar
      • setQuotechar

        public void setQuotechar​(char quotechar)
        Parameters:
        quotechar - the quotechar to set
      • setEscapechar

        public void setEscapechar​(char escapechar2)
        Parameters:
        escapechar2 -
      • getEscapechar

        public char getEscapechar()
        Returns:
      • getSeparator

        public char getSeparator()
        Returns:
        the separator
      • setSeparator

        public void setSeparator​(char separator)
        Parameters:
        separator - the separator to set
      • getLineSeparator

        public String getLineSeparator()
        Returns:
        the lineSeparator
      • setLineSeparator

        public void setLineSeparator​(String lineSeparator)
        Parameters:
        lineSeparator - the lineSeparator to set
      • isQuoteAllFields

        public boolean isQuoteAllFields()
        Returns:
        the quoteAllFields
      • setQuoteAllFields

        public void setQuoteAllFields​(boolean quoteAllFields)
        Parameters:
        quoteAllFields - the quoteAllFields to set