sboag 00/11/14 08:43:59
Modified: java/src/org/apache/xalan/processor
TransformerFactoryImpl.java
Log:
Added XMLFilter newXMLFilter(Templates templates),
Made both versions of newXMLFilter throw
TransformerConfigurationException.
Revision Changes Path
1.6 +18 -9
xml-xalan/java/src/org/apache/xalan/processor/TransformerFactoryImpl.java
Index: TransformerFactoryImpl.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/processor/TransformerFactoryImpl.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- TransformerFactoryImpl.java 2000/11/13 16:26:51 1.5
+++ TransformerFactoryImpl.java 2000/11/14 16:43:58 1.6
@@ -425,17 +425,26 @@
* @return An XMLFilter object, or null if this feature is not supported.
*/
public XMLFilter newXMLFilter(Source src)
+ throws TransformerConfigurationException
{
- try
- {
- Templates templates = newTemplates(src);
- return new TrAXFilter(templates);
- }
- catch(TransformerConfigurationException tfe)
- {
- return null;
- }
+ Templates templates = newTemplates(src);
+ return newXMLFilter(templates);
}
+
+ /**
+ * Create an XMLFilter that uses the given source as the
+ * transformation instructions.
+ *
+ * @param src The source of the transformation instructions.
+ *
+ * @return An XMLFilter object, or null if this feature is not supported.
+ */
+ public XMLFilter newXMLFilter(Templates templates)
+ throws TransformerConfigurationException
+ {
+ return new TrAXFilter(templates);
+ }
+
/**
* Get a TransformerHandler object that can process SAX