com.johnmunsch.demo
Class HTMLBox

java.lang.Object
  |
  +--com.johnmunsch.demo.HTMLBox

public class HTMLBox
extends java.lang.Object

Author:
John Munsch

Constructor Summary
HTMLBox(Channel channel, java.util.List list, java.lang.String filename, boolean generateJavaScript)
          Creates new HTMLBox
 
Method Summary
static void main(java.lang.String[] args)
          A more sophisticated example of using the RSS classes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLBox

public HTMLBox(Channel channel,
               java.util.List list,
               java.lang.String filename,
               boolean generateJavaScript)
Creates new HTMLBox

Method Detail

main

public static void main(java.lang.String[] args)
A more sophisticated example of using the RSS classes. This example loads up an RSS channel from a file and then generates an HTML or JavaScript representation of that channel. JavaScript is an option because the resulting file can be copied onto a web server and referred to by another HTML file as an external JavaScript. Then users would download it separately from a main page that would refer to it and they would get up to date insertions of news onto a page. For example you would insert this into an HTML page: Then you would use this HTMLBox to generate the JavaScript file entertainment.js. That file could be updated and copied to the server on a regular basis and the headlines on the HTML page would seem to update regularly even on websites where the webpages are not being served up using dynamic web page technologies like JSP, ASP, or PHP.

Parameters:
args - the command line arguments