🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #3129

How to turn off Input Caching...

#3129
From: Robert Hemming
Date: Fri, 15 May 1998 00:00
41 lines
1814 bytes
   Hi All,

    Could some one give me a suggestion to correct my delima.

    I have an Applet that has scrolling text information that it has
received from a file. Well this file can change at anytime. Therefore, I

have a timer thread that does nothing but sleep for a preset time and
when it wakes it goes out and rereads this file. There lies my problem.

    Instead of rereading the new file it rereads the cached file. When I

run it in JBuilder's IDE everything is great, but once deployed on the
web it just keeps rereading the cached file. I am sure of this because I

modified the file multiple times on the web while my browser is
displaying the Applet and no change occurrs. However, when I do the same

changes to the file when running in JBuilder's IDE it reads the modified

file.

    This is the way I set up my connection.

       URL u1 = new URL(this.getCodeBase(),"TODAYS.WND");
       DataIn = new BufferedReader(new
InputStreamReader(u1.openStream()));

       // Read the file in and extract information required

       DataIn.close();

    I have read that caching of input file is controlled by the protocol

in the URLConnection. I would like to know how I can control whether to
cache or not.

    Thanks,
       Rob
PropellerHead Connection
Technical Details
Message-ID: <355C59E7.93E6DBB2@teleport.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,2f7dadc7d2274951,start
X-Google-Attributes: gid1089d0,public
From: Robert Hemming <bordhead@teleport.com>
Subject: How to turn off Input Caching...
Date: 1998/05/15
Message-ID: <355C59E7.93E6DBB2@teleport.com>
X-Deja-AN: 353531700
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.api