Monday, February 14, 2005

CSC365 NewsReader

Arrrrrrgh! I can't figure out how to extract subject lines from a specified group! I can put the article numbers into an ArrayList with no problem. But then when I iterate through that ArrayList and issue HEAD Article# accordingly so that I can extract the subject line from server output, I get errors!

I read in server output one line at a time, from FROM to Content-Type-Encoding, assign each as a String, then instantiate an Article object encapsulating these info. There is, however, something wrong in the process that each line is off-sync with what I think it would be. Therefore, I am not getting the right info and that produces errors I'm getting.

I need a rest to clear my mind. Today's routine is legs. I hope working out can rejuvenate me and then maybe this problem can be worked out.

No comments:

 
var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-910127-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; ga.setAttribute('async', 'true'); document.documentElement.firstChild.appendChild(ga); })();