dev@fi.java.net

Refactoring for properties etc

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 02 Mar 2005 14:38:09 +0100

Hi,

I have refactored the code to better support generic properties that
apply to all parsers.

There are two properties for setting this:

1) A system property

        "com.sun.xml.fastinfoset.parser.buffer-size"

   for setting the default value for instantiations of parsers.


2) A runtime property:

        FastInfosetParser.BUFFER_SIZE_PROPERTY =
        "http://jvnet.org/fastinfoset/parser/properties/buffer-size"

   for getting/setting using generic methods e.g. using
   org.xml.sax.XMLReader

   or using the methods:

        FastInfosetParser.setBufferSize(int bufferSize);
        int FastInfosetParser.getBufferSize()


The reason why they are different is that Java properties are used like
package names where as properties/features for XML parsers like SAX and
DOM tend use URIs.

With the system properties a properties file can be used.

Paul.

-- 
| ? + ? = To question
----------------\
   Paul Sandoz
        x38109
+33-4-76188109