abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r1238773 - /abdera/abdera2/core/src/main/java/org/apache/abdera2/parser/ParserOptions.java
Date Tue, 31 Jan 2012 19:52:08 GMT
Author: jmsnell
Date: Tue Jan 31 19:52:08 2012
New Revision: 1238773

URL: http://svn.apache.org/viewvc?rev=1238773&view=rev
Log:
bug fix... updated code diverged from previous behavior.

Modified:
    abdera/abdera2/core/src/main/java/org/apache/abdera2/parser/ParserOptions.java

Modified: abdera/abdera2/core/src/main/java/org/apache/abdera2/parser/ParserOptions.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/core/src/main/java/org/apache/abdera2/parser/ParserOptions.java?rev=1238773&r1=1238772&r2=1238773&view=diff
==============================================================================
--- abdera/abdera2/core/src/main/java/org/apache/abdera2/parser/ParserOptions.java (original)
+++ abdera/abdera2/core/src/main/java/org/apache/abdera2/parser/ParserOptions.java Tue Jan
31 19:52:08 2012
@@ -41,7 +41,7 @@ public class ParserOptions {
   }
   
   public static Builder from(ParserOptions options) {
-    Builder builder = new Builder();
+    Builder builder = new Builder(true);
     builder.factory = options.factory;
     builder.charset = options.charset;
     builder.parseFilter = options.parseFilter;
@@ -62,9 +62,9 @@ public class ParserOptions {
     implements Supplier<ParserOptions> {
 
     protected Factory factory = null;
-    protected String charset = "UTF-8";
+    protected String charset;
     protected ParseFilter parseFilter = null;
-    protected boolean detect = false;
+    protected boolean detect = true;
     protected boolean preserve = true;
     protected boolean filterreserved = false;
     protected char replacement = 0;
@@ -84,6 +84,10 @@ public class ParserOptions {
       initDefaultEntities();
     }
     
+    Builder(boolean se) {
+      // skip the default entities
+    }
+    
     public Builder factory(Factory factory) {
       this.factory = factory;
       return this;



Mime
View raw message