🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2333

Re: Detect external FTP completion / File access

#2333
From: Owen Green
Date: Wed, 04 Apr 2001 14:02
15 lines
1491 bytes

> I don't know if you can open a file exclusively in Java ( I'm new to the
> language )but if you can, try to open the file exclusively in a loop, here
> is code that shows how I did this once in pascal:

It doesn't appear that you can; the RandomAccessFile will take an access
mode, but this only allows 'r' or 'rw'. The access checks are made by the
security manager, which as far as I can tell (and I would dearly love to be
wrong) only checks the static permissions of the file, not whether anything
else happens to be locking it at the time, otherwise that approach would be
great.

Thanks,
Owen
Technical Details
Message-ID: <3acb296f_1@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out-sjo.usenetserver.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews
References: <3acb1131$1_1@dnews> <3acb1e59$1_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,5f00da40b52bab4d
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-04-04 07:18:05 PST
From: "Owen Green" <owen@norobots.unique.com>
Newsgroups: borland.public.jbuilder.java.api
References: <3acb1131$1_1@dnews> <3acb1e59$1_2@dnews>
Subject: Re: Detect external FTP completion / File access 
Date: Wed, 4 Apr 2001 15:02:20 +0100
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 213.86.7.136
Message-ID: <3acb296f_1@dnews>
X-Trace: dnews 986392943 213.86.7.136 (4 Apr 2001 07:02:23 -0700)
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out-sjo.usenetserver.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews