DimDom v0.8.2

org.alltimeflashdreamer.dimdom
Class SiteTester

java.lang.Object
  |
  +--org.alltimeflashdreamer.dimdom.SiteTester

public class SiteTester
extends Object

Title: SiteTester
Description: This class allows both a designer and a programmer to test whether a html file describing a web site is acceptable for the DOM parser and the needs of DimDom.
It reads the command line parameters and parses the specified file accordingly, printing out either the result output after a successful parsing or the stack trace of the exception that was thrown during the processing.
Furthermore, SiteTester provides an installation-testing procedure, which may be initiated using the word "test" as the first command line parameter. In this case, SiteTester parses the hard-coded XHTML test string. If this succeeds, the DimDom installation works correctly.


Constructor Summary
SiteTester(String sFileName)
          Tries to parse the file and throws the possibly upcoming exceptions to the main method where they are printed to the screen.
 
Method Summary
static void main(String[] args)
          The main method parses the command line arguments and reacts accordingly.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SiteTester

public SiteTester(String sFileName)
           throws Exception
Tries to parse the file and throws the possibly upcoming exceptions to the main method where they are printed to the screen.
Parameters:
sFileName - the full path name of the file to be parsed or "test"
Throws:
Exception - any possibly upcoming exception
Method Detail

main

public static void main(String[] args)
The main method parses the command line arguments and reacts accordingly.
The arguments are:
  1. the fully path and name of the file to be parsed for testing purposes (required, if a file shall be parsed)
  2. a boolean ("true" or "false") indicating whether debug information shall be printed or not (optional)
If the first argument is the word "test", the internal, very simple test XHTML string is parsed, which is valid anyway. Should this throw an error, something with your DimDom installation must be wrong.
Parameters:
args - the command line arguments

Copyright (c) 2001/02 by Florian Steinsiepe