Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Java file reading

Reply
Thread Tools

Java file reading

 
 
Crouchez
Guest
Posts: n/a
 
      07-26-2007
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.


 
Reply With Quote
 
 
 
 
Twisted
Guest
Posts: n/a
 
      07-26-2007
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.

 
Reply With Quote
 
 
 
 
=?ISO-8859-1?Q?Arne_Vajh=F8j?=
Guest
Posts: n/a
 
      07-29-2007
Crouchez 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.


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

Arne
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
xml file reading in java /deserialization in java sowmyask Software 0 04-15-2009 07:03 AM
Reading a file and resuming reading. Karim Ali Python 2 05-25-2007 02:04 PM
UnauthorizedAccessException when reading XML files (no problem when reading other file-types) blabla120@gmx.net ASP .Net 0 09-15-2006 02:08 PM
An Automated process of watching a network file folder, reading a file in it and deleting the file using ASP.NET ? Luis Esteban Valencia Muņoz ASP .Net 3 06-04-2005 10:56 AM
reading the DB vs. reading a text file...performance preference? Darrel ASP .Net 3 11-11-2004 02:27 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57