cache « Development « Java I/O Q&A





1. Share file storage index with multiple open applications in Java    stackoverflow.com

I'm writing an HTTP Cache library for Java, and I'm trying to use that library in the same application which is started twice. I want to be able to share the ...

2. Disable serialization cache    stackoverflow.com

Is there a way to disable caching of serialized object in Java? I have this scenario:

  1. I have an object which is Serializable, I am serializing it, deserializing it, values are OK.
  2. On the ...

3. Deleting Java's "temporary internet files"    stackoverflow.com

In the Java Control Panel on Windows there are settings for "temporary internet files" wherein all the applets and webstart stuff is cached. For certain users of our application this caching ...

4. Java object caching, which is faster, reading from a file or from a remote machine?    stackoverflow.com

I am at a point where I need to take the decision on what to do when caching of objects reaches the configured threshold. Should I store the objects in a indexed ...

5. How to cache *any* object type to memory/disk in java?    stackoverflow.com

Is there a generic way to cache any type of object (be in a java class, or a word document etc.) to memory or disk? Is simply serializing the object, and retaining ...

6. Way to storage object without rdbms or plain file with Java    stackoverflow.com

first of all sorry for my English is not my native language. I have a web form input field and a servlet (Clustered Weblogic AS) which receives the contents of this input. ...

7. Java max file caching solution    stackoverflow.com

I'm trying to write many files to a directory, and when the directory reaches X number of files, I want the least recently accessed file to be deleted before writing the ...

8. Storing downloaded files in Java    stackoverflow.com

I have a java application that I am developing that displays pictures from the website it is made to supplement. Now I would like to save some bandwidth, so what I ...

9. Keep serialized and compressed Objects in-memory    stackoverflow.com

I'm currently working on a Part of an Application where "a lot" of data must be selected for further work and I have the impression that the I/O is limiting and ...





10. File size caching & efficient retrieval of file sizes in Java    stackoverflow.com

I need to determine the size of a very large character-encoded file. A read of the file takes a significant amount of time. My understanding is that when a file is first ...

11. location for temp work or cache directory for sun appserver    stackoverflow.com

Any idea where i can find or a way to find the temp or cache directory for sun appserver7. I tried moving a class file after changing the code. But restarting ...

12. Caching large objects and de/serializing them if needed (Java)    stackoverflow.com

i just came to the point where weather google nor my knowledge bring me forwards. Think about the following situation: I read in a lot (up to millions) of large objects ...

13. downloading & writting file >> caching    coderanch.com

- I am keeping a set of files in session as ByteArrayStream objects. - Based on the user's request respective file/files is/are zipped and downloaded. - First time I download, I am getting the file size and file correctly. But if I make a repeat filedownload request I am noticing the file size is zero bytes. I am guessing this is ...

15. Implementing a file cache    coderanch.com

Hi, I want to implement a filecache. I have a number of directories and I want to save all filenames in there with there lasteditdate and a md5-checksum. In a Background Thread I check every few minutes if a file has changed and if so I refresh the MD5-Hash. Up here that is no big problem. I want to know if ...

16. reading files & caching    coderanch.com

I just built a class that will read a .properties file and get values from it. Since I'll be making frequent calls to this for configuration values throughout my app, how can I cache access to this file so I'm not reading the entire file on every call? Would I need to do this? Here's the class: public class Property { ...





17. Java.lang.ClassCastException Java.io.File incompatible with com.sun.deploy.Cache.CachedJarFile    coderanch.com

Hi there, One of the client(who uses our product for testing) is getting this exception when trying to load the JNLP file. He has signed all the JARS, but unable to launch the JNLP. After doing some search I found that it happens due to cached file that can be removed from JAVA control panel view. I suggested the client same ...

18. Loading .DAT files as a cache    forums.oracle.com

And I already have figured out that they load the .DAT files in the client through a DataInputStream/DataOutputStream, but the actual question is: Is there any way I can do something like this myself too? (You know store the images and so on in .DAT files, and take their loading thing and make it load my own .DAT files instead?) And ...

19. Mozill temp file folder (Cache Folder)    forums.oracle.com

20. Updating cache when file is changed.    forums.oracle.com

Hi all, I am working on a "Resource Manager" module in java. What it does is : 1. Read the configuration file from a location(proerty name/value pair). 2. Loads the file properties in a cache which holds the in a CachedHashMap as Key-Value pair The same config file which it reads looks like this: 1 213 MyApp ...

21. how to cache a file    forums.oracle.com

22. caching a file as ByteArrayInputStream/ByteArrayOutputStream object    forums.oracle.com

- I am keeping a set of files in session as ByteArrayStream objects. - Based on the user's request respective file/files is/are zipped and downloaded. - First time I download, I am getting the file size and file correctly. But if I make a repeat filedownload request I am noticing the file size is zero bytes. I am guessing this is ...