sboag 00/11/14 08:40:42
Modified: java/src/javax/xml/transform/sax SAXTransformerFactory.java
Log:
Added XMLFilter newXMLFilter(Templates templates),
Made both versions of newXMLFilter throw
TransformerConfigurationException.
Revision Changes Path
1.5 +22 -1
xml-xalan/java/src/javax/xml/transform/sax/SAXTransformerFactory.java
Index: SAXTransformerFactory.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/javax/xml/transform/sax/SAXTransformerFactory.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- SAXTransformerFactory.java 2000/11/13 16:26:32 1.4
+++ SAXTransformerFactory.java 2000/11/14 16:40:42 1.5
@@ -79,6 +79,10 @@
*/
public abstract class SAXTransformerFactory extends TransformerFactory
{
+ /**
+ * Default constructor is protected on purpose.
+ */
+ protected SAXTransformerFactory(){}
/**
* Get a TransformerHandler object that can process SAX
@@ -143,6 +147,23 @@
* @param src The source of the transformation instructions.
*
* @return An XMLFilter object, or null if this feature is not supported.
+ *
+ * @throws TransformerConfigurationException If for some reason the
+ * TemplatesHandler can not be created.
+ */
+ public abstract XMLFilter newXMLFilter(Source src)
+ throws TransformerConfigurationException;
+
+ /**
+ * Create an XMLFilter, based on the Templates argument..
+ *
+ * @param templates The source of the transformation instructions.
+ *
+ * @return An XMLFilter object, or null if this feature is not supported.
+ *
+ * @throws TransformerConfigurationException If for some reason the
+ * TemplatesHandler can not be created.
*/
- public abstract XMLFilter newXMLFilter(Source src);
+ public abstract XMLFilter newXMLFilter(Templates templates)
+ throws TransformerConfigurationException;
}