org.txt2xml.driver
Class StreamDriver

java.lang.Object
  |
  +--org.txt2xml.driver.SaxDriver
        |
        +--org.txt2xml.driver.StreamDriver

public class StreamDriver
extends SaxDriver

Sends XML from a Processor to a Stream via a null Transformer used as a serializer.

Author:
Steve Meyfroidt

Field Summary
 
Fields inherited from class org.txt2xml.driver.SaxDriver
NULL_ATTRIBUTES, ROOT_ELEMENT
 
Constructor Summary
StreamDriver()
           
StreamDriver(Processor processor)
           
 
Method Summary
 void generateXmlDocument(java.lang.CharSequence text, java.io.OutputStream stream)
          Dump XML to an OutputStream using a null XSL Transformer as a serializer, and closing the OutputStream after use.
 java.util.Properties getOutputProperties()
          Gets the current output properties used for the Transformer that serializes XML to an OutputStream.
 void setOutputProperties(java.util.Properties outputProperties)
          Gets the current output properties used for the Transformer that serializes XML to an OutputStream.
 void useDebugOutputProperties()
          Make a set of default OutputProperties for Transformer.setOutputProperties suitable for debug XML output.
 
Methods inherited from class org.txt2xml.driver.SaxDriver
generateXmlDocument, setProcessor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamDriver

public StreamDriver()

StreamDriver

public StreamDriver(Processor processor)
Method Detail

useDebugOutputProperties

public void useDebugOutputProperties()
Make a set of default OutputProperties for Transformer.setOutputProperties suitable for debug XML output.

See Also:
OutputKeys

generateXmlDocument

public void generateXmlDocument(java.lang.CharSequence text,
                                java.io.OutputStream stream)
                         throws org.xml.sax.SAXException,
                                javax.xml.transform.TransformerConfigurationException,
                                java.io.IOException
Dump XML to an OutputStream using a null XSL Transformer as a serializer, and closing the OutputStream after use.

org.xml.sax.SAXException
javax.xml.transform.TransformerConfigurationException
java.io.IOException

getOutputProperties

public java.util.Properties getOutputProperties()
Gets the current output properties used for the Transformer that serializes XML to an OutputStream.

Returns:
current output properties used for the Transformer that serializes XML to an OutputStream
See Also:
useDebugOutputProperties(), OutputKeys

setOutputProperties

public void setOutputProperties(java.util.Properties outputProperties)
Gets the current output properties used for the Transformer that serializes XML to an OutputStream.

See Also:
useDebugOutputProperties(), OutputKeys


Copyright 2002 Steve Meyfroidt. All Rights Reserved.