Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #15089 > unrolled thread

file cache support

Started bybob <bob@coolfone.comze.com>
First post2012-06-07 08:56 -0700
Last post2012-06-13 12:21 -0700
Articles 4 — 4 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  file cache support bob <bob@coolfone.comze.com> - 2012-06-07 08:56 -0700
    Re: file cache support Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-06-07 09:24 -0700
    Re: file cache support rossum <rossum48@coldmail.com> - 2012-06-07 18:02 +0100
    Re: file cache support Roedy Green <see_website@mindprod.com.invalid> - 2012-06-13 12:21 -0700

#15089 — file cache support

Frombob <bob@coolfone.comze.com>
Date2012-06-07 08:56 -0700
Subjectfile cache support
Message-ID<de50bdac-cc90-4f61-870a-b56d3720f068@googlegroups.com>
Does Java have any built-in support for file caches?

Thanks.

[toc] | [next] | [standalone]


#15090

FromDaniel Pitts <newsgroup.nospam@virtualinfinity.net>
Date2012-06-07 09:24 -0700
Message-ID<MA4Ar.5443$gr.3482@newsfe20.iad>
In reply to#15089
On 6/7/12 8:56 AM, bob wrote:
> Does Java have any built-in support for file caches?
>
> Thanks.
What sort of file caches? Are you talking about caching files in memory 
(which is more often an OS level operation), or about caching external 
resources (http request for instance) into a file?

ASAIK, there is no "built-in" support any kind of file caching, however 
there are probably libraries out there to support what you want, 
depending on what exactly it is that you want.  Also, Java does have 
"built-in" support for accessing the file system to read and write files.

[toc] | [prev] | [next] | [standalone]


#15091

Fromrossum <rossum48@coldmail.com>
Date2012-06-07 18:02 +0100
Message-ID<2hn1t7ttuc5cung1tq2esh0a40nufvc4ok@4ax.com>
In reply to#15089
On Thu, 7 Jun 2012 08:56:22 -0700 (PDT), bob <bob@coolfone.comze.com>
wrote:

>Does Java have any built-in support for file caches?
>
>Thanks.
Are buffered files what you want?  Support for that is available:

  BufferedInputStream
  BufferedOutputStream
  BufferedReader
  BufferedWriter

rossum

[toc] | [prev] | [next] | [standalone]


#15249

FromRoedy Green <see_website@mindprod.com.invalid>
Date2012-06-13 12:21 -0700
Message-ID<ftpht79fs22mc35odqqugai62fpm6t40gu@4ax.com>
In reply to#15089
On Thu, 7 Jun 2012 08:56:22 -0700 (PDT), bob <bob@coolfone.comze.com>
wrote, quoted or indirectly quoted someone who said :

>Does Java have any built-in support for file caches?

There is nio which is a sort of roll your own caching.  The OS of
course is running a cache as is the drive hardware in modern drives.

All you have to do is buy more ram or install an SSD.


-- 
Roedy Green Canadian Mind Products
http://mindprod.com
Controlling complexity is the essence of computer programming.
~ Brian W. Kernighan 1942-01-01
.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web