On Thu, Aug 11, 2005 at 03:47:37PM +0930, Nick Lothian wrote:
> > 
> > Hi, All,
> > 
> > I need to extend java.net.URL, in order to handle newer/more schemes.
> > The problem is that java.net.URL is final, not meant to be subclassed.
> > Since URL is extensively used in nutch, I am also reluctant 
> > to replace every one with my own MyURL. It seems I will have 
> > to hack java.net.URL source directly. This is not portable 
> > though. I am wondering if there are better alternatives, or 
> > some tricks can be applied.
> > 
> > Thanks,
> > 
> > John
> > 
> 
> Do pluggable protocol handlers do what you want? (eg:
> http://java.sun.com/developer/onlineTraining/protocolhandlers/)

Hi, Nick,

How could I have missed that! That's the one. Thanks a lot.

John

> 
> Nick
> 
__________________________________________
http://www.neasys.com - A Good Place to Be
Come to visit us today!


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Nutch-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-developers

Reply via email to