jaxp/src/com/sun/org/apache/xerces/internal/dom/CoreDOMImplementationImpl.java
changeset 25834 aba3efbf4ec5
parent 25264 040625ce9b72
equal deleted inserted replaced
25833:054a597b18f8 25834:aba3efbf4ec5
     1 /*
     1 /*
     2  * reserved comment block
     2  * reserved comment block
     3  * DO NOT REMOVE OR ALTER!
     3  * DO NOT REMOVE OR ALTER!
     4  */
     4  */
     5 /*
     5 /*
     6  * Copyright 1999-2005 The Apache Software Foundation.
     6  * Licensed to the Apache Software Foundation (ASF) under one or more
     7  *
     7  * contributor license agreements.  See the NOTICE file distributed with
     8  * Licensed under the Apache License, Version 2.0 (the "License");
     8  * this work for additional information regarding copyright ownership.
     9  * you may not use this file except in compliance with the License.
     9  * The ASF licenses this file to You under the Apache License, Version 2.0
    10  * You may obtain a copy of the License at
    10  * (the "License"); you may not use this file except in compliance with
       
    11  * the License.  You may obtain a copy of the License at
    11  *
    12  *
    12  *      http://www.apache.org/licenses/LICENSE-2.0
    13  *      http://www.apache.org/licenses/LICENSE-2.0
    13  *
    14  *
    14  * Unless required by applicable law or agreed to in writing, software
    15  * Unless required by applicable law or agreed to in writing, software
    15  * distributed under the License is distributed on an "AS IS" BASIS,
    16  * distributed under the License is distributed on an "AS IS" BASIS,
   383          * initial value of the <code>"error-handler"</code> configuration
   384          * initial value of the <code>"error-handler"</code> configuration
   384          * parameter on the new created <code>LSSerializer</code> contains a
   385          * parameter on the new created <code>LSSerializer</code> contains a
   385          * reference to the default error handler.
   386          * reference to the default error handler.
   386          */
   387          */
   387         public LSSerializer createLSSerializer() {
   388         public LSSerializer createLSSerializer() {
   388         return new DOMSerializerImpl();
   389             try {
   389     }
   390                 Class serializerClass = ObjectFactory.findProviderClass(
       
   391                     "com.sun.org.apache.xml.internal.serializer.dom3.LSSerializerImpl",
       
   392                     ObjectFactory.findClassLoader(), true);
       
   393                 return (LSSerializer) serializerClass.newInstance();
       
   394             }
       
   395             catch (Exception e) {}
       
   396             // Fall back to Xerces' deprecated serializer if
       
   397             // the Xalan based serializer is unavailable.
       
   398             return new DOMSerializerImpl();
       
   399         }
       
   400 
   390         /**
   401         /**
   391          * DOM Level 3 LS CR - Experimental.
   402          * DOM Level 3 LS CR - Experimental.
   392          * Create a new empty input source.
   403          * Create a new empty input source.
   393          * @return  The newly created input object.
   404          * @return  The newly created input object.
   394          */
   405          */