Article View: borland.public.jbuilder.java.language
Article #7685Re: How know if an image file doesn't exist's?
From: Nabin Thomas
Date: Sat, 26 May 2001 05:16
Date: Sat, 26 May 2001 05:16
28 lines
1783 bytes
1783 bytes
Try new URL(getCodeBase(),imageFile).openConnection()
This method throws Exception if the URL is not found.
Dionisio Barrantes wrote:
> I retrieve an image with the sentence
> Image image = getImage(getCodeBase(), imageFile);
>
> How can I inspect if the image file doesn't exists? There are a method as
> exists() in class File?.
--
***********************************
***************************************************
******************* Web Card **********************
***************************************************
Name : Nabin Thomas
e-mail : nabinthomas@hotmail.com
Web : http://nabin.terrashare.com
Feel free to contact me thru e-mail or MSN Mssenger
if required but DONOT SPAM
***************************************************
***********************************
Technical Details
Message-ID:
<3B0F3C29.3E37A198@hotmail.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!netnews.com!ams-newsfeed.speedport.net!newsfeed.speedport.net!colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3b0ae968_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,a0059ffcbdb4488c X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-05-25 22:52:02 PST Message-ID: <3B0F3C29.3E37A198@hotmail.com> Date: Sat, 26 May 2001 10:46:25 +0530 From: Nabin Thomas <nabinthomas@hotmail.com> X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language Subject: Re: How know if an image file doesn't exist's? References: <3b0ae968_1@dnews> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 202.9.167.237 X-Trace: dnews 990855205 202.9.167.237 (25 May 2001 22:33:25 -0700) Lines: 32 Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!netnews.com!ams-newsfeed.speedport.net!newsfeed.speedport.net!colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews