com.cleancode.net
Class SimpleHtmlParse.Test
java.lang.Object
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
.
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
SimpleHtmlParse.Test
public SimpleHtmlParse.Test ()
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 parameterparamValue
- 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