Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2007

Tip: Looking for answers? Try searching our database.

Java file reading

Thread view: 
Crouchez - 26 Jul 2007 07:22 GMT
Are there any guidelines on how long you can keep a filereader open on a
file for? What exactly is java doing when it opens a filereader? I think
some operating systems will force the connection shut after a certain amount
of time but not sure.
Twisted - 26 Jul 2007 08:12 GMT
On Jul 26, 2:22 am, "Crouchez" <b...@bllllllahblllbllahblahblahhh.com>
wrote:
> Are there any guidelines on how long you can keep a filereader open on a
> file for? What exactly is java doing when it opens a filereader? I think
> some operating systems will force the connection shut after a certain amount
> of time but not sure.

If it's a local file I don't see why. If it's a network connection it
may need some kind of "keepalive"; that will depend on the specific
protocol. In the case of HTTP I know there's a Keepalive: 1 HTTP
header. In the case of others (FTP, local network file sharing
protocols like Samba and NFS, etc.) I don't have a clue, sorry. :)
Arne Vajhøj - 29 Jul 2007 20:27 GMT
> Are there any guidelines on how long you can keep a filereader open on a
> file for? What exactly is java doing when it opens a filereader? I think
> some operating systems will force the connection shut after a certain amount
> of time but not sure.

I am not aware of any operating system that will "timeout" open files.

Arne


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.