net.ontopia.xml
Class TidyHTML

java.lang.Object
  extended by net.ontopia.xml.TidyHTML
All Implemented Interfaces:
java.lang.Runnable

public class TidyHTML
extends java.lang.Object
implements java.lang.Runnable

Generate tidied HTML from a URL stream. It's possible to use multiple Tidy-Processes running on separate threads.


Field Summary
protected  org.slf4j.Logger log
           
 
Constructor Summary
TidyHTML(java.lang.String strUrl, java.lang.String outFileName, java.lang.String errOutFileName, boolean xmlOut)
          Specify InputStream which should been parsed, and the OutputStream to which the pretty-printed result should been send.
 
Method Summary
static void main(java.lang.String[] args)
          only for test purposes
 void run()
          start the tidification
 void tidify()
          convenience wrapper to wait until one process has finished
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected org.slf4j.Logger log
Constructor Detail

TidyHTML

public TidyHTML(java.lang.String strUrl,
                java.lang.String outFileName,
                java.lang.String errOutFileName,
                boolean xmlOut)
Specify InputStream which should been parsed, and the OutputStream to which the pretty-printed result should been send.

Parameters:
errOutFileName - Name of the file for writing out errors/warnings
xmlOut - generate XML output, otherwise HTML
Method Detail

run

public void run()
start the tidification

Specified by:
run in interface java.lang.Runnable

tidify

public void tidify()
convenience wrapper to wait until one process has finished


main

public static void main(java.lang.String[] args)
only for test purposes



Copyright © 2000-2012 Ontopia.