Java file reading

C

Crouchez

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.
 
T

Twisted

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. :)
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

Crouchez said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top