[Yanel-commits] rev 49401 - public/yanel/trunk/src/contributions/resources/search/src/java/org/wyona/yanel/impl/resources/search

michi at wyona.com michi at wyona.com
Sat May 8 13:38:18 CEST 2010


Author: michi
Date: 2010-05-08 13:38:17 +0200 (Sat, 08 May 2010)
New Revision: 49401

Modified:
   public/yanel/trunk/src/contributions/resources/search/src/java/org/wyona/yanel/impl/resources/search/XHTMLBeanContentHandler.java
Log:
debug statements commented and formatting

Modified: public/yanel/trunk/src/contributions/resources/search/src/java/org/wyona/yanel/impl/resources/search/XHTMLBeanContentHandler.java
===================================================================
--- public/yanel/trunk/src/contributions/resources/search/src/java/org/wyona/yanel/impl/resources/search/XHTMLBeanContentHandler.java	2010-05-08 11:33:56 UTC (rev 49400)
+++ public/yanel/trunk/src/contributions/resources/search/src/java/org/wyona/yanel/impl/resources/search/XHTMLBeanContentHandler.java	2010-05-08 11:38:17 UTC (rev 49401)
@@ -29,42 +29,47 @@
         this.xhtmlBean = xhtmlBean;  
     }
 
-   public void setDocumentLocator (Locator locator) { 
+    public void setDocumentLocator (Locator locator) { 
 	  log.warn("Hello from setDocumentLocator()!"); 
 	}
 
-    public void startDocument ()
-	throws SAXException  { 
-	  log.warn("Hello from startDocument()!"); 
-	}
+    /**
+     *
+     */
+    public void startDocument () throws SAXException  { 
+        //log.warn("DEBUG: Hello from startDocument()!"); 
+    }
 
-    public void endDocument()
-	throws SAXException {  
-	  log.warn("Hello from endDocument()!"); 
-	}
+    public void endDocument() throws SAXException {  
+        //log.warn("DEBUG: Hello from endDocument()!"); 
+    }
 
     /**
      *
      */
     public void startPrefixMapping (String prefix, String uri) throws SAXException {  
-        log.warn("Prefix: " + prefix);
-        log.warn("uri: " + uri);
+/*
+        log.warn("DEBUG: Prefix: " + prefix);
+        log.warn("DEBUG: uri: " + uri);
+*/
     }
 
     /**
      *
      */
     public void endPrefixMapping (String prefix) throws SAXException  {  
-        log.warn("Prefix: " + prefix);
+        //log.warn("DEBUG: Prefix: " + prefix);
     }
 
     /**
      *
      */
     public void startElement (String uri, String localName, String qName, Attributes atts) throws SAXException {  
-        log.warn("Local name: " + localName);
-        log.warn("qName: " + qName);
-        log.warn("uri: " + uri);
+/*
+        log.warn("DEBUG: Local name: " + localName);
+        log.warn("DEBUG: qName: " + qName);
+        log.warn("DEBUG: uri: " + uri);
+*/
         if (localName.equals("title")) {
             insideTitle = true;
         }
@@ -80,7 +85,7 @@
      *
      */
     public void endElement (String uri, String localName, String qName) throws SAXException {  
-        log.warn("Local name: " + localName); 
+        //log.warn("DEBUG: Local name: " + localName); 
         if (localName.equals("title")) {
             insideTitle = false;
         }
@@ -98,19 +103,19 @@
     public void characters (char ch[], int start, int length) throws SAXException {  
         if (insideTitle) {
             xhtmlBean.setTitle(new String(ch));
-            log.warn("DEBUG: Title: " + new String(ch));
+            //log.warn("DEBUG: Title: " + new String(ch));
         }
         if (insideMeta) {
-            log.warn("DEBUG: Meta: " + new String(ch));
+            //log.warn("DEBUG: Meta: " + new String(ch));
         }
         if (insidePara) {
-            log.warn("DEBUG: Paragraph: " + new String(ch));
+            //log.warn("DEBUG: Paragraph: " + new String(ch));
         }
     }
 
     public void ignorableWhitespace (char ch[], int start, int length)
 	throws SAXException {  
-	  log.warn("Hello from ignorableWhitespace()!"); 
+	  //log.warn("DEBUG: Hello from ignorableWhitespace()!"); 
 	}
 
     public void processingInstruction (String target, String data)



More information about the Yanel-commits mailing list