Author: j16sdiz
Date: 2008-12-29 01:19:55 +0000 (Mon, 29 Dec 2008)
New Revision: 24815

Modified:
   trunk/plugins/XMLSpider/XMLSpider.java
Log:
indent

Modified: trunk/plugins/XMLSpider/XMLSpider.java
===================================================================
--- trunk/plugins/XMLSpider/XMLSpider.java      2008-12-29 01:19:39 UTC (rev 
24814)
+++ trunk/plugins/XMLSpider/XMLSpider.java      2008-12-29 01:19:55 UTC (rev 
24815)
@@ -423,48 +423,48 @@
                FreenetURI uri = state.getURI();
 
                try {
-                               ClientMetadata cm = result.getMetadata();
-                               Bucket data = result.asBucket();
-                               String mimeType = cm.getMIMEType();
+                       ClientMetadata cm = result.getMetadata();
+                       Bucket data = result.asBucket();
+                       String mimeType = cm.getMIMEType();
 
-                               /*
-                                * instead of passing the current object, the 
pagecallback object for every page is
-                                * passed to the content filter this has many 
benefits to efficiency, and allows us
-                                * to identify trivially which page is being 
indexed. (we CANNOT rely on the base
-                                * href provided).
-                                */
-                               PageCallBack pageCallBack = new 
PageCallBack(page);
-                               Logger.minor(this, "Successful: " + uri + " : " 
+ page.id);
+                       /*
+                        * instead of passing the current object, the 
pagecallback object for every page is
+                        * passed to the content filter this has many benefits 
to efficiency, and allows us to
+                        * identify trivially which page is being indexed. (we 
CANNOT rely on the base href
+                        * provided).
+                        */
+                       PageCallBack pageCallBack = new PageCallBack(page);
+                       Logger.minor(this, "Successful: " + uri + " : " + 
page.id);
 
-                               try {
-                                       ContentFilter.filter(data, new 
NullBucketFactory(), mimeType, uri.toURI("http://127.0.0.1:8888/";),
-                                                       pageCallBack);
-                                       pageCallBack.store();
+                       try {
+                               ContentFilter.filter(data, new 
NullBucketFactory(), mimeType, uri.toURI("http://127.0.0.1:8888/";),
+                                       pageCallBack);
+                               pageCallBack.store();
 
-                                       synchronized (this) {
-                                               page.status = Status.SUCCEEDED;
+                               synchronized (this) {
+                                       page.status = Status.SUCCEEDED;
                                        page.lastChange = 
System.currentTimeMillis();
                                        db.store(page);
                                        db.commit();
                                }
-                                       Logger.minor(this, "Filtered " + uri + 
" : " + page.id);
-                               } catch (UnsafeContentTypeException e) {
-                                       synchronized (this) {
-                                               page.status = Status.SUCCEEDED;
-                                               page.lastChange = 
System.currentTimeMillis();
+                               Logger.minor(this, "Filtered " + uri + " : " + 
page.id);
+                       } catch (UnsafeContentTypeException e) {
+                               synchronized (this) {
+                                       page.status = Status.SUCCEEDED;
+                                       page.lastChange = 
System.currentTimeMillis();
                                        db.store(page);
                                        db.commit();
                                }
-                                       return; // Ignore
-                               } catch (IOException e) {
-                                       db.rollback();
-                                       Logger.error(this, "Bucket error?: " + 
e, e);
-                               } catch (URISyntaxException e) {
-                                       db.rollback();
-                                       Logger.error(this, "Internal error: " + 
e, e);
-                               } finally {
-                                       data.free();
-                               }
+                               return; // Ignore
+                       } catch (IOException e) {
+                               db.rollback();
+                               Logger.error(this, "Bucket error?: " + e, e);
+                       } catch (URISyntaxException e) {
+                               db.rollback();
+                               Logger.error(this, "Internal error: " + e, e);
+                       } finally {
+                               data.free();
+                       }
                } catch (RuntimeException e) {
                        db.rollback();
                        throw e;

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to