>I've figured out how to make the Java version of the distiller
>callable from Java, but that raises the question of what the Java API
>to the distiller should be.  I'm thinking that to begin with, it will
>be very simple, something like:

This would be awesome.  This is exactly what I was going to start working
on.  I'm assuming that the parser code would implement this interface, so I
just need to create an instance of the parser and call invoke on it.  If
that's true, I don't need to have any knowledge of the Jython API, just
this interface.  That would be a good thing :-)

The only thing I would suggest adding is a callback function that updates
the caller with info on where the spider is at, i.e. total pages plucked,
number of pages in queue.  Maybe something like
      public interface SpiderListener {
            void update(int numberPagesPlucked, int numberPagesInQueue);
            // maybe even something like?
            void startPage(String currentURL);
      }

Then add this to your interface
      void addSpiderCallback(SpiderListener listener)

I would love to alpha or even pre-alpha test this.  There's some
significant work I need to do to the conduit to add this in that has
nothing to do with your code, but I can't get anything running without your
code to call.

Bill, I also got your email regarding the pluckit code.  I was going to
start looking at that to determine what to do to call this from Java, but
now I'll wait for your update.

Bill

PS I hope I'm not in violation of the new mailing list standards, i.e. I
hope this doesn't come through as html mail.



_______________________________________________
plucker-dev mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-dev

Reply via email to