Java Code Examples for org.supercsv.prefs.CsvPreference#getMaxLinesPerRow()
The following examples show how to use
org.supercsv.prefs.CsvPreference#getMaxLinesPerRow() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Tokenizer.java From super-csv with Apache License 2.0 | 5 votes |
/** * Constructs a new <tt>Tokenizer</tt>, which reads the CSV file, line by line. * * @param reader * the reader * @param preferences * the CSV preferences * @throws NullPointerException * if reader or preferences are null */ public Tokenizer(final Reader reader, final CsvPreference preferences) { super(reader, preferences); this.quoteChar = preferences.getQuoteChar(); this.delimiterChar = preferences.getDelimiterChar(); this.surroundingSpacesNeedQuotes = preferences.isSurroundingSpacesNeedQuotes(); this.ignoreEmptyLines = preferences.isIgnoreEmptyLines(); this.commentMatcher = preferences.getCommentMatcher(); this.maxLinesPerRow = preferences.getMaxLinesPerRow(); this.emptyColumnParsing = preferences.getEmptyColumnParsing(); this.quoteEscapeChar = preferences.getQuoteEscapeChar(); }
Example 2
Source File: QuoteTrackingTokenizer.java From spliceengine with GNU Affero General Public License v3.0 | 5 votes |
/** * Constructs a new <tt>Tokenizer</tt>, which reads the CSV file, line by line. * * @param reader the reader * @param preferences the CSV preferences * @throws NullPointerException if reader or preferences is null */ public QuoteTrackingTokenizer(final Reader reader,final CsvPreference preferences){ super(reader,preferences); this.quoteChar=preferences.getQuoteChar(); this.delimeterChar=preferences.getDelimiterChar(); this.surroundingSpacesNeedQuotes=preferences.isSurroundingSpacesNeedQuotes(); this.ignoreEmptyLines=preferences.isIgnoreEmptyLines(); this.commentMatcher=preferences.getCommentMatcher(); this.maxLinesPerRow=preferences.getMaxLinesPerRow(); }