Class WebPageWriter

java.lang.Object
  extended by WebPageWriter

public class WebPageWriter
extends Object

Class used to write web (HTML) pages

Author:
Barb Ericson

Constructor Summary
WebPageWriter()
           
 
Method Summary
 void createImagePage(String directory)
          Method to create a page with thumbnails of all the images in a directory
 void createSoundPage(String directory)
          Method to create a page with links to the sound files in the passed directory
static void main(String[] args)
           
 void writeExamplePage(String fileName)
          Method to write an example web (HTML) page
 void writeHomepage(String name, String interests)
          Method that will write out a homepage for a person with the passed name
 void writeHomepageV2(String name, String interests)
          Method for writing a homepage for the passed name
 void writeHomepageV3(String name, String interests)
          Method for writing a homepage for the passed name that displays the current weather
 void writeHomepageV4(String name, String interests)
          Method for writing a homepage for the passed name that displays the current weather and a random sentence
 void writeHomepageV5(String name, String interests)
          Method for writing a homepage for the passed first name that displays her/his interests and age
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebPageWriter

public WebPageWriter()
Method Detail

writeExamplePage

public void writeExamplePage(String fileName)
Method to write an example web (HTML) page

Parameters:
fileName - the file to write to

writeHomepage

public void writeHomepage(String name,
                          String interests)
Method that will write out a homepage for a person with the passed name

Parameters:
name - the name of the person that this homepage is for
interests - a list of the person's interests

writeHomepageV2

public void writeHomepageV2(String name,
                            String interests)
Method for writing a homepage for the passed name

Parameters:
name - the person's name
interests - a list of the person's interests

createImagePage

public void createImagePage(String directory)
Method to create a page with thumbnails of all the images in a directory

Parameters:
directory - the directory to create the page for

createSoundPage

public void createSoundPage(String directory)
Method to create a page with links to the sound files in the passed directory

Parameters:
directory - the directory to create the page for

writeHomepageV3

public void writeHomepageV3(String name,
                            String interests)
Method for writing a homepage for the passed name that displays the current weather

Parameters:
name - the person's name
interests - a list of the person's interests

writeHomepageV4

public void writeHomepageV4(String name,
                            String interests)
Method for writing a homepage for the passed name that displays the current weather and a random sentence

Parameters:
name - the person's name
interests - a list of the person's interests

writeHomepageV5

public void writeHomepageV5(String name,
                            String interests)
Method for writing a homepage for the passed first name that displays her/his interests and age

Parameters:
name - the person's first name
interests - a list of the person's interests

main

public static void main(String[] args)