Skip to content

Commit

Permalink
Added method to set custom escape character
Browse files Browse the repository at this point in the history
  • Loading branch information
puru-khedre authored and dixitdeepak committed Aug 22, 2024
1 parent 08fe867 commit edcd031
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ class EntityDataLoaderImpl implements EntityDataLoader {
@Override EntityDataLoader csvDelimiter(char delimiter) { this.csvDelimiter = delimiter; return this }
@Override EntityDataLoader csvCommentStart(char commentStart) { this.csvCommentStart = commentStart; return this }
@Override EntityDataLoader csvQuoteChar(char quoteChar) { this.csvQuoteChar = quoteChar; return this }
@Override EntityDataLoader csvEscapeChar(char escapeChar) { this.csvEscapeChar = escapeChar; return this }

@Override EntityDataLoader csvEntityName(String entityName) {
if (!efi.isEntityDefined(entityName) && !sfi.isServiceDefined(entityName))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public interface EntityDataLoader {
EntityDataLoader csvDelimiter(char delimiter);
EntityDataLoader csvCommentStart(char commentStart);
EntityDataLoader csvQuoteChar(char quoteChar);
EntityDataLoader csvEscapeChar(char escapeChar);

/** For CSV files use this name (entity or service name) instead of looking for it on line one in the file */
EntityDataLoader csvEntityName(String entityName);
Expand Down

0 comments on commit edcd031

Please sign in to comment.