ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Resource.getURL()
Date Thu, 21 Sep 2006 19:27:41 GMT
On Thu, 21 Sep 2006, Matt Benson <> wrote:

> Okay, I've never used the custom protocol handlers,
> only read about them.  I have no problem taking the
> word of others that there may be difficulties;

Same here.

> Let me interject on that thought.  Currently
> Resource.getInputStream()/.getOutputStream() throw UOE
> in the base implementation, without related pre-check
> methods as you mention above.  It may be a good idea
> to add these.

If we add them for getURL(), yes, we should be consistent.

> The base implementation of these checkers could either return false,
> leaving it to the subclasses to override, OR the base implementation
> could call the related get...() method; catch any UOE and return
> false, or close() the stream if successfully retrieved.

I'd keep that simple, i.e. return false;


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message