com.cleancode.net
Class SimpleHtmlParse.Test

java.lang.Object
  extended by com.cleancode.net.SimpleHtmlParse.Test
All Implemented Interfaces:
SimpleHtmlParse.Callback
Enclosing class:
SimpleHtmlParse

public static class SimpleHtmlParse.Test
extends Object
implements SimpleHtmlParse.Callback

A standalone test class. Extracts predefined elements from the HTML structure of the specified file and prints the results to stdout. Diagnostic output is printed on stderr.


Constructor Summary
SimpleHtmlParse.Test()
           
 
Method Summary
 void addHtmlElement(String paramName, String paramValue)
          This implements the SimpleHtmlParse.Callback interface.
static void main(String[] args)
          Main program for this standalone test class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleHtmlParse.Test

public SimpleHtmlParse.Test()
Method Detail

addHtmlElement

public void addHtmlElement(String paramName,
                           String paramValue)
This implements the SimpleHtmlParse.Callback interface. For this Test class, we just print the results.

Specified by:
addHtmlElement in interface SimpleHtmlParse.Callback
Parameters:
paramName - name of the parsed parameter
paramValue - value of the parsed parameter

main

public static void main(String[] args)
                 throws IOException
Main program for this standalone test class.

Usage: SimpleHtmlParse$Test filename

Extracts predefined elements from the HTML structure of the specified file.

Parameters:
args - filename to parse
Throws:
IOException - if any problems reading the file


CleanCode Java Libraries Copyright © 2001-2012 Michael Sorens - Revised 2012.12.10 Get CleanCode at SourceForge.net. Fast, secure and Free Open Source software downloads