> > 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/) Nick
