Article View: borland.public.jbuilder.java.api
Article #342Re: How to determine whether a file exist or not in a remote host by using java?
From: John
Date: Fri, 27 Feb 2004 11:02
Date: Fri, 27 Feb 2004 11:02
3 lines
1360 bytes
1360 bytes
If you know the URL of the file you could try using the exists() method from the File Class, maybe? This method returns a boolean indicating if the File exists.
Technical Details
Message-ID:
<ztF%b.78614$Wa.6032@news-server.bigpond.net.au>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-out1.nntp.be!propagator2-sterling!news-in-sterling.newsfeeds.com!news.moat.net!lon-transit.news.telstra.net!ken-transit.news.telstra.net!news.telstra.net!news-server.bigpond.net.au!53ab2750!not-for-mailReferences:
<402b53b2$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,160816a85b795761 X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2004-02-27 03:04:15 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-out1.nntp.be!propagator2-sterling!news-in-sterling.newsfeeds.com!news.moat.net!lon-transit.news.telstra.net!ken-transit.news.telstra.net!news.telstra.net!news-server.bigpond.net.au!53ab2750!not-for-mail From: "John" <j.mcguiness@bigpond.com> Newsgroups: borland.public.jbuilder.java.api References: <402b53b2$1@newsgroups.borland.com> Subject: Re: How to determine whether a file exist or not in a remote host by using java? Lines: 5 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: <ztF%b.78614$Wa.6032@news-server.bigpond.net.au> Date: Fri, 27 Feb 2004 11:02:55 GMT NNTP-Posting-Host: 144.138.154.61 X-Complaints-To: abuse@bigpond.net.au X-Trace: news-server.bigpond.net.au 1077879775 144.138.154.61 (Fri, 27 Feb 2004 22:02:55 EST) NNTP-Posting-Date: Fri, 27 Feb 2004 22:02:55 EST Organization: BigPond Internet Services