|
|||||||||
| Home >> All >> org >> txt2xml >> [ driver overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.txt2xml.driver
Class StreamDriver

java.lang.Objectorg.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.
| Field Summary | |
private static java.util.logging.Logger |
LOG
|
private java.util.Properties |
outputProperties
|
| Fields inherited from class org.txt2xml.driver.SaxDriver |
NULL_ATTRIBUTES, ROOT_ELEMENT |
| Constructor Summary | |
StreamDriver()
|
|
StreamDriver(org.txt2xml.core.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 |
| Field Detail |
LOG
private static final java.util.logging.Logger LOG
outputProperties
private java.util.Properties outputProperties
| Constructor Detail |
StreamDriver
public StreamDriver()
StreamDriver
public StreamDriver(org.txt2xml.core.Processor processor)
| Method Detail |
useDebugOutputProperties
public void useDebugOutputProperties()
- Make a set of default OutputProperties for
Transformer.setOutputPropertiessuitable for debug XML output.
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.
getOutputProperties
public java.util.Properties getOutputProperties()
- Gets the current output properties used for the
Transformer that serializes XML to an OutputStream.
setOutputProperties
public void setOutputProperties(java.util.Properties outputProperties)
- Gets the current output properties used for the
Transformer that serializes XML to an OutputStream.
|
|||||||||
| Home >> All >> org >> txt2xml >> [ driver overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC