You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2012/03/22 18:56:03 UTC

svn commit: r1303929 - /commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Lexer.java

Author: sebb
Date: Thu Mar 22 17:56:03 2012
New Revision: 1303929

URL: http://svn.apache.org/viewvc?rev=1303929&view=rev
Log:
Additional convenience fields

Modified:
    commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Lexer.java

Modified: commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Lexer.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Lexer.java?rev=1303929&r1=1303928&r2=1303929&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Lexer.java (original)
+++ commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Lexer.java Thu Mar 22 17:56:03 2012
@@ -34,6 +34,9 @@ abstract class Lexer {
     private final char encapsulator;
     private final char commmentStart;
     
+    final boolean leadingSpacesIgnored;
+    final boolean trailingSpacesIgnored;
+    final boolean emptyLinesIgnored;
     
     final CSVFormat format;
     
@@ -50,6 +53,9 @@ abstract class Lexer {
         this.escape = format.getEscape();
         this.encapsulator = format.getEncapsulator();
         this.commmentStart = format.getCommentStart();
+        this.leadingSpacesIgnored = format.isLeadingSpacesIgnored();
+        this.trailingSpacesIgnored = format.isTrailingSpacesIgnored();
+        this.emptyLinesIgnored = format.isEmptyLinesIgnored();
     }
 
     int getLineNumber() {