Util.java revision 573
0N/A * DO NOT REMOVE OR ALTER! 0N/A * Copyright 2001-2004 The Apache Software Foundation. 0N/A * Licensed under the Apache License, Version 2.0 (the "License"); 2362N/A * you may not use this file except in compliance with the License. 0N/A * You may obtain a copy of the License at 0N/A * Unless required by applicable law or agreed to in writing, software 0N/A * distributed under the License is distributed on an "AS IS" BASIS, 0N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 0N/A * See the License for the specific language governing permissions and 0N/A * limitations under the License. 0N/A * @author Santiago Pericas-Geertsen 0N/A * Creates a SAX2 InputSource object from a TrAX Source object 0N/A // Try to get InputSource from SAXSource input 0N/A // Pass the SAX parser to the compiler 0N/A * According to JAXP 1.2 specification if a SAXSource 0N/A * is created using a SAX InputSource the Transformer or 0N/A * TransformerFactory creates a reader via the 0N/A * XMLReaderFactory if setXMLReader is not used 0N/A //Incase there is an exception thrown 0N/A (
"ParserConfigurationException" ,
pce);
0N/A (
"SAXNotRecognizedException ",
snre);
0N/A (
"SAXNotSupportedException ",
snse);
0N/A // Try to get SAX InputSource from DOM Source. 0N/A // handle StAXSource 0N/A // get sax InputSource from StAXSource 0N/A // Try to get InputStream or Reader from StreamSource 0N/A // Create InputSource from Reader or InputStream in Source 0N/A "TransformerFactory.newTemplates()");