src/com/sun/org/apache/xalan/internal/xsltc/trax/TransformerFactoryImpl.java

Print this page




 236 
 237     /**
 238      * javax.xml.transform.sax.TransformerFactory implementation.
 239      */
 240     public TransformerFactoryImpl() {
 241         this(true);
 242     }
 243 
 244     public static TransformerFactory newTransformerFactoryNoServiceLoader() {
 245         return new TransformerFactoryImpl(false);
 246     }
 247 
 248     private TransformerFactoryImpl(boolean useServicesMechanism) {
 249         this.m_DTMManagerClass = XSLTCDTMManager.getDTMManagerClass(useServicesMechanism);
 250         this._useServicesMechanism = useServicesMechanism;
 251 
 252         String defaultAccess = XalanConstants.EXTERNAL_ACCESS_DEFAULT;
 253         if (System.getSecurityManager() != null) {
 254             _isSecureMode = true;
 255             _isNotSecureProcessing = false;
 256             defaultAccess = XalanConstants.getExternalAccessDefault(true);
 257         }
 258         _accessExternalStylesheet =  SecuritySupport.getDefaultAccessProperty(
 259                 XalanConstants.SP_ACCESS_EXTERNAL_STYLESHEET, defaultAccess);
 260         _accessExternalDTD =  SecuritySupport.getDefaultAccessProperty(
 261                 XalanConstants.SP_ACCESS_EXTERNAL_DTD, defaultAccess);
 262     }
 263 
 264     /**
 265      * javax.xml.transform.sax.TransformerFactory implementation.
 266      * Set the error event listener for the TransformerFactory, which is used
 267      * for the processing of transformation instructions, and not for the
 268      * transformation itself.
 269      *
 270      * @param listener The error listener to use with the TransformerFactory
 271      * @throws IllegalArgumentException
 272      */
 273     public void setErrorListener(ErrorListener listener)
 274         throws IllegalArgumentException
 275     {
 276         if (listener == null) {




 236 
 237     /**
 238      * javax.xml.transform.sax.TransformerFactory implementation.
 239      */
 240     public TransformerFactoryImpl() {
 241         this(true);
 242     }
 243 
 244     public static TransformerFactory newTransformerFactoryNoServiceLoader() {
 245         return new TransformerFactoryImpl(false);
 246     }
 247 
 248     private TransformerFactoryImpl(boolean useServicesMechanism) {
 249         this.m_DTMManagerClass = XSLTCDTMManager.getDTMManagerClass(useServicesMechanism);
 250         this._useServicesMechanism = useServicesMechanism;
 251 
 252         String defaultAccess = XalanConstants.EXTERNAL_ACCESS_DEFAULT;
 253         if (System.getSecurityManager() != null) {
 254             _isSecureMode = true;
 255             _isNotSecureProcessing = false;

 256         }
 257         _accessExternalStylesheet =  SecuritySupport.getDefaultAccessProperty(
 258                 XalanConstants.SP_ACCESS_EXTERNAL_STYLESHEET, defaultAccess);
 259         _accessExternalDTD =  SecuritySupport.getDefaultAccessProperty(
 260                 XalanConstants.SP_ACCESS_EXTERNAL_DTD, defaultAccess);
 261     }
 262 
 263     /**
 264      * javax.xml.transform.sax.TransformerFactory implementation.
 265      * Set the error event listener for the TransformerFactory, which is used
 266      * for the processing of transformation instructions, and not for the
 267      * transformation itself.
 268      *
 269      * @param listener The error listener to use with the TransformerFactory
 270      * @throws IllegalArgumentException
 271      */
 272     public void setErrorListener(ErrorListener listener)
 273         throws IllegalArgumentException
 274     {
 275         if (listener == null) {