com.mkdoc.jtidy
Class TidyDriver

java.lang.Object
  |
  +--com.mkdoc.jtidy.TidyDriver

public class TidyDriver
extends java.lang.Object

A JTidy driver to encapsulate HTML processing.

Version:
0.2 2004-12-10
Author:
Philip Shaw

Constructor Summary
TidyDriver()
          Default constructor without logging.
TidyDriver(net.javacoding.jspider.core.logging.Log log)
          Constructor with JSpider logging.
 
Method Summary
 void parse(java.io.InputStream inStream, java.io.OutputStream outStream)
          Write an tidied output stream.
 java.io.InputStream tidyInputStream(java.io.InputStream inStream)
          Get a tidied input stream in memory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TidyDriver

public TidyDriver()
Default constructor without logging.

Since:
Version 0.1 2004-12-09

TidyDriver

public TidyDriver(net.javacoding.jspider.core.logging.Log log)
Constructor with JSpider logging.

Parameters:
log - A JSpider Log instance to pass messages.
Since:
Version 0.1 2004-12-09
Method Detail

parse

public final void parse(java.io.InputStream inStream,
                        java.io.OutputStream outStream)
Write an tidied output stream.

Parameters:
outStream - The output stream to which to write the output.
inStream - The (X)HTML input stream for to be tidied.
Since:
Version 0.1 2004-12-09

tidyInputStream

public final java.io.InputStream tidyInputStream(java.io.InputStream inStream)
Get a tidied input stream in memory.

Parameters:
inStream - The (X)HTML input stream for to be tidied.
Returns:
An input stream that has been passed through JTidy.
Since:
Version 0.2 2004-12-03