vgritsenko 2004/02/26 05:47:52
Modified: java/src/org/apache/xindice/client/xmldb/resources XMLResourceImpl.java Log: cleanup Revision Changes Path 1.21 +12 -11 xml-xindice/java/src/org/apache/xindice/client/xmldb/resources/XMLResourceImpl.java Index: XMLResourceImpl.java =================================================================== RCS file: /home/cvs/xml-xindice/java/src/org/apache/xindice/client/xmldb/resources/XMLResourceImpl.java,v retrieving revision 1.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- XMLResourceImpl.java 8 Feb 2004 02:43:02 -0000 1.20 +++ XMLResourceImpl.java 26 Feb 2004 13:47:52 -0000 1.21 @@ -46,18 +46,13 @@ */ public class XMLResourceImpl implements org.xmldb.api.modules.XMLResource { - private static SAXParserFactory saxFactory; + private static final SAXParserFactory saxFactory; static { saxFactory = SAXParserFactory.newInstance(); saxFactory.setNamespaceAware(true); } - protected String id; - protected String documentId; - protected org.xmldb.api.base.Collection collection; - protected String content; - /** * This is a SAX feature that controls how namespaces are reported in SAX. * By default this feature is <em>on</em>. @@ -76,6 +71,14 @@ public static final String SAX_NAMESPACE_PREFIXES_FEATURE = SAXEventGenerator.SAX_NAMESPACE_PREFIXES_FEATURE; + + protected String id; + protected String documentId; + protected org.xmldb.api.base.Collection collection; + protected String content; + private SymbolTable symbols; + private byte[] bytes; + /* * State of the SAX_NAMESPACES_FEATURE. True indicates namespace URIs and unprefixed local * names for element and attribute names will be available. @@ -90,10 +93,8 @@ * * For SAX2 the default is off. */ - private boolean hasSaxNamespacesPrefixes = false; + private boolean hasSaxNamespacesPrefixes; - private SymbolTable symbols = null; - private byte[] bytes = null; /** * Constructor for the XMLResourceImpl object