@Test public void testCsvOptionWithQuoteCharInvalidLength() { thrown.expect(IllegalArgumentException.class); thrown.expectMessage("invalid QUOTE character '\"\"'. Only single character is allowed for QUOTE."); gpCSV.withQuoteChar("\"\""); }
public GreenplumCSV withQuoteChar(String quoteString) { if (StringUtils.isNotEmpty(quoteString)) { validateSingleCharacter(quoteString, "QUOTE"); withQuoteChar(quoteString.charAt(0)); } return this; }
GreenplumCSV { public GreenplumCSV withQuoteChar(String quoteString) { if (StringUtils.isNotEmpty(quoteString)) { validateSingleCharacter(quoteString, "QUOTE"); withQuoteChar(quoteString.charAt(0)); } return this; } }
GreenplumCSV { public GreenplumCSV withQuoteChar(String quoteString) { if (StringUtils.isNotEmpty(quoteString)) { validateSingleCharacter(quoteString, "QUOTE"); withQuoteChar(quoteString.charAt(0)); } return this; } GreenplumCSV(); }
GreenplumCSV { public GreenplumCSV withQuoteChar(String quoteString) { if (StringUtils.isNotEmpty(quoteString)) { validateSingleCharacter(quoteString, "QUOTE"); withQuoteChar(quoteString.charAt(0)); } return this; } GreenplumCSV(); String getValueOfNull(); char getQuote(); Character getEscape(); String getNewline(); Character getDelimiter(); GreenplumCSV withValueOfNull(String valueOfNull); GreenplumCSV withQuoteChar(String quoteString); GreenplumCSV withQuoteChar(char quoteChar); GreenplumCSV withEscapeChar(String escapeString); GreenplumCSV withEscapeChar(char escapeChar); GreenplumCSV withNewline(String newline); GreenplumCSV withDelimiter(String delimiterString); GreenplumCSV withDelimiter(char delimiterChar); String toCsvField(String s, boolean prependQuoteChar, boolean appendQuoteChar); String toCsvField(String s,
                             boolean prependQuoteChar,
                             boolean appendQuoteChar,
                             boolean skipIfQuotingIsNotNeeded); }
GreenplumCSV { public GreenplumCSV withQuoteChar(String quoteString) { if (StringUtils.isNotEmpty(quoteString)) { validateSingleCharacter(quoteString, "QUOTE"); withQuoteChar(quoteString.charAt(0)); } return this; } GreenplumCSV(); String getValueOfNull(); char getQuote(); Character getEscape(); String getNewline(); Character getDelimiter(); GreenplumCSV withValueOfNull(String valueOfNull); GreenplumCSV withQuoteChar(String quoteString); GreenplumCSV withQuoteChar(char quoteChar); GreenplumCSV withEscapeChar(String escapeString); GreenplumCSV withEscapeChar(char escapeChar); GreenplumCSV withNewline(String newline); GreenplumCSV withDelimiter(String delimiterString); GreenplumCSV withDelimiter(char delimiterChar); String toCsvField(String s, boolean prependQuoteChar, boolean appendQuoteChar); String toCsvField(String s,
                             boolean prependQuoteChar,
                             boolean appendQuoteChar,
                             boolean skipIfQuotingIsNotNeeded);  }