abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r429578 - in /incubator/abdera/java/trunk: core/src/main/java/org/apache/abdera/parser/Parser.java parser/src/main/java/org/apache/abdera/parser/stax/FOMParser.java
Date Tue, 08 Aug 2006 05:05:07 GMT
Author: jmsnell
Date: Mon Aug  7 22:05:07 2006
New Revision: 429578

URL: http://svn.apache.org/viewvc?rev=429578&view=rev
Log:
Add a Parser.setDefaultParserOptions(...)

Modified:
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/parser/Parser.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMParser.java

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/parser/Parser.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/parser/Parser.java?rev=429578&r1=429577&r2=429578&view=diff
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/parser/Parser.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/parser/Parser.java Mon
Aug  7 22:05:07 2006
@@ -94,4 +94,7 @@
       throws ParseException, URISyntaxException;
   
   ParserOptions getDefaultParserOptions();
+  
+  void setDefaultParserOptions(ParserOptions options);
+  
 }

Modified: incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMParser.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMParser.java?rev=429578&r1=429577&r2=429578&view=diff
==============================================================================
--- incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMParser.java
(original)
+++ incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMParser.java
Mon Aug  7 22:05:07 2006
@@ -38,6 +38,8 @@
   extends AbstractParser 
   implements Parser {
   
+  protected ParserOptions options = null;
+  
   private FOMFactory getFomFactory(ParserOptions options) {
     FOMFactory factory = 
       (options != null && options.getFactory() != null) ? 
@@ -122,7 +124,13 @@
   
   @Override
   public ParserOptions getDefaultParserOptions() {
-    return new FOMParserOptions();
+    if (options == null)
+      options = new FOMParserOptions();
+    return options;
+  }
+
+  public void setDefaultParserOptions(ParserOptions options) {
+    this.options = options;
   }
 
 }



Mime
View raw message