commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1303929 - /commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Lexer.java
Date Thu, 22 Mar 2012 17:56:03 GMT
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() {



Mime
View raw message