jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r331114 - /incubator/jackrabbit/trunk/contrib/jcr-ext/src/java/org/apache/jackrabbit/xml/nodetype/NodeTypeXML.java
Date Sun, 06 Nov 2005 16:31:25 GMT
Author: jukka
Date: Sun Nov  6 08:31:21 2005
New Revision: 331114

URL: http://svn.apache.org/viewcvs?rev=331114&view=rev
Log:
JCR-EXT: Removed Java 5 specific method calls. Needs a workaround for Java 1.4.

Modified:
    incubator/jackrabbit/trunk/contrib/jcr-ext/src/java/org/apache/jackrabbit/xml/nodetype/NodeTypeXML.java

Modified: incubator/jackrabbit/trunk/contrib/jcr-ext/src/java/org/apache/jackrabbit/xml/nodetype/NodeTypeXML.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-ext/src/java/org/apache/jackrabbit/xml/nodetype/NodeTypeXML.java?rev=331114&r1=331113&r2=331114&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-ext/src/java/org/apache/jackrabbit/xml/nodetype/NodeTypeXML.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-ext/src/java/org/apache/jackrabbit/xml/nodetype/NodeTypeXML.java
Sun Nov  6 08:31:21 2005
@@ -51,7 +51,7 @@
             throws TransformerConfigurationException, TransformerException {
         NodeTypeXMLReader reader = new NodeTypeXMLReader();
         TransformerFactory factory = TransformerFactory.newInstance();
-        factory.setFeature("http://xml.org/sax/features/namespaces", true);
+        // factory.setFeature("http://xml.org/sax/features/namespaces", true);
         Transformer transformer = factory.newTransformer();
         transformer.transform(source, new SAXResult(reader));
         return reader.getNodeTypeManagerState();
@@ -61,7 +61,7 @@
             throws IOException, ParserConfigurationException, SAXException {
         NodeTypeXMLReader reader = new NodeTypeXMLReader();
         SAXParserFactory factory = SAXParserFactory.newInstance();
-        factory.setFeature("http://xml.org/sax/features/namespaces", true);
+        // factory.setFeature("http://xml.org/sax/features/namespaces", true);
         SAXParser parser = factory.newSAXParser();
         parser.parse(source, reader);
         return reader.getNodeTypeManagerState();
@@ -71,7 +71,7 @@
             throws IOException, ParserConfigurationException, SAXException {
         NodeTypeXMLReader reader = new NodeTypeXMLReader();
         SAXParserFactory factory = SAXParserFactory.newInstance();
-        factory.setFeature("http://xml.org/sax/features/namespaces", true);
+        // factory.setFeature("http://xml.org/sax/features/namespaces", true);
         SAXParser parser = factory.newSAXParser();
         parser.parse(file, reader);
         return reader.getNodeTypeManagerState();
@@ -81,7 +81,7 @@
             throws IOException, ParserConfigurationException, SAXException {
         NodeTypeXMLReader reader = new NodeTypeXMLReader();
         SAXParserFactory factory = SAXParserFactory.newInstance();
-        factory.setFeature("http://xml.org/sax/features/namespaces", true);
+        // factory.setFeature("http://xml.org/sax/features/namespaces", true);
         SAXParser parser = factory.newSAXParser();
         parser.parse(input, reader);
         return reader.getNodeTypeManagerState();
@@ -101,6 +101,7 @@
         handler.setResult(result);
         write(state, handler);
     }
+
 
     public static void write(NodeTypeManagerState state, OutputStream output)
             throws TransformerConfigurationException, SAXException {



Mime
View raw message