Re-reading and parsing text from a non-changing url in timertask
<p>I need to repeatedly read and parse the same file from an unchanging url every 2 s. I have function to fill a string from the remoted url, and I put that in TimerTask and Timer t.schedule. My question is, since it can be expensive to repeatedly read and parse the json file due to the file's complexity and size, do I need to open a new connection in timertask's run method or is there some trick to allow the connection (Stream) to remain open and read again from beginning? </p>
