Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Disabling Caching?

843807Oct 27 2003 — edited Jun 2 2005
I need to programatically disable caching of certain files within my applet. Specifically, I need to disable caching of .au files within the .jpi_cache directory on a local machine.

My applet downloads audio files from a web server, and uses JMF to play them. However, I need to prevent a local copy of the .au file from being copied onto the client. The reasons for this involve security of the media, and copyright issues, etc.

I've read thru the documentation of the Java Plugin. There's a way to disable caching on the local machine, but it requires action by the client to disable. This isn't sufficient for the job.

I also have tried disabling caching within the JMF (using Manager.setHints(Manager.CACHING, new Boolean(false)); ), but that does not prevent the au file from being copied into the jpi_cache directory.

I'm not sure if an HTML-based solution would suffice; I'd prefer to be able to set some property within the applet to disable the caching.

Any help would be appreciated. Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 30 2005
Added on Oct 27 2003
13 comments
602 views