🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7759

Re: How know if an image file doesn't exist's?

#7759
From: Tami Poupko
Date: Wed, 23 May 2001 19:23
10 lines
1169 bytes
use your code in a try and catch and make a system.out.println to tell you if
the file wasn't 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?.
Technical Details
Message-ID: <3B0C0E48.3EF0ACC3@udscorp.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-03!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
References: <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-23 10:34:04 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-03!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
From: Tami Poupko <Poupko@udscorp.com>
Newsgroups: borland.public.jbuilder.java.language
Subject: Re: How know if an image file doesn't exist's?
Date: Wed, 23 May 2001 12:23:53 -0700
Organization: Ultramar Diamond Shamrock
Message-ID: <3B0C0E48.3EF0ACC3@udscorp.com>
Reply-To: Poupko@udscorp.com
X-Mailer: Mozilla 4.5 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
References: <3b0ae968_1@dnews>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Complaints-To: newsabuse@supernews.com
Lines: 11