Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*    */ package org.apache.xml.resolver.tools;
 /*    */ 
 /*    */ import javax.xml.parsers.SAXParser;
 /*    */ import javax.xml.parsers.SAXParserFactory;
 /*    */ import org.xml.sax.helpers.XMLFilterImpl;
 /*    */ 
 /*    */ public class ResolvingXMLReader extends ResolvingXMLFilter
 /*    */ {
/* 46 */   public static boolean namespaceAware = true;
/*    */ 
/* 49 */   public static boolean validating = false;
/*    */ 
/*    */   public ResolvingXMLReader()
/*    */   {
/* 60 */     SAXParserFactory spf = SAXParserFactory.newInstance();
/* 61 */     spf.setNamespaceAware();
/* 62 */     spf.setValidating();
/*    */     try {
/* 64 */       SAXParser parser = spf.newSAXParser();
/* 65 */       setParent(parser.getXMLReader());
/*    */     } catch (Exception ex) {
/* 67 */       ex.printStackTrace();
/*    */     }
/*    */   }
/*    */ 
/*    */   public ResolvingXMLReader(CatalogManager manager)
/*    */   {
/* 79 */     super(manager);
/* 80 */     SAXParserFactory spf = SAXParserFactory.newInstance();
/* 81 */     spf.setNamespaceAware();
/* 82 */     spf.setValidating();
/*    */     try {
/* 84 */       SAXParser parser = spf.newSAXParser();
/* 85 */       setParent(parser.getXMLReader());
/*    */     } catch (Exception ex) {
/* 87 */       ex.printStackTrace();
/*    */     }
/*    */   }
/*    */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
 * Qualified Name:     org.apache.xml.resolver.tools.ResolvingXMLReader
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X