|
|||||||||
| Home >> All >> org >> apache >> xalan >> [ xslt overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.xalan.xslt
Class XSLTResultTarget

java.lang.Objectorg.apache.xalan.xslt.XSLTResultTarget
- public class XSLTResultTarget
- extends java.lang.Object
Contains the result of a transformation that you perform with the XSLTProcessor process() method or one of the StylesheetRoot process() methods. Create an instance of this class to provide the process() method a container for the transformation result tree. You can use a file name or URL, character stream, byte stream, DOM Node, or SAX DocumentHandler to instantiate an XSLTResultTarget object.
| Field Summary | |
private java.io.OutputStream |
byteStream
|
private java.io.Writer |
characterStream
|
private java.lang.String |
encoding
|
private java.lang.String |
fileName
|
private org.xml.sax.DocumentHandler |
formatterListener
|
private org.w3c.dom.Node |
node
|
| Constructor Summary | |
XSLTResultTarget()
Zero-argument default constructor -- Before you can use the new XSLTResultTarget object in a transformation, you must define the output container by setting its FileName, CharacterStrea, ByteStream, or Node property. |
|
XSLTResultTarget(org.xml.sax.DocumentHandler handler)
Create a new output target with a SAX Document handler, which will handle result events -- the equivalent of creating an output target with the zero-argument constructor and setting the new object's DocyumentHandler property. |
|
XSLTResultTarget(org.w3c.dom.Node n)
Create a new output target with a DOM Node -- the equivalent of creating an output target with the zero-argument constructor and setting the new object's Node property. |
|
XSLTResultTarget(java.io.OutputStream byteStream)
Create a new output target with a byte stream -- the equivalent of creating an output target with the zero-argument constructor and setting the new object's ByteStream property. |
|
XSLTResultTarget(java.lang.String fileName)
Create a new output target with a file name -- the equivalent of creating an output target with the zero-argument constructor and setting the new object's FileName property. |
|
XSLTResultTarget(java.io.Writer characterStream)
Create a new output target with a character stream -- the equivalent of creating an output target with the zero-argument constructor and setting the new object's CharacterStream property. |
|
| Method Summary | |
java.io.OutputStream |
getByteStream()
Get the byte stream that contains or will contain the transformation result. |
java.io.Writer |
getCharacterStream()
Get the character stream for this output target. |
org.xml.sax.DocumentHandler |
getDocumentHandler()
Get the SAX DocumentHandler that processes the result tree events. |
java.lang.String |
getEncoding()
Get the character encoding that was used. |
java.lang.String |
getFileName()
Get the file name where the results are or will be written, or null if none was supplied. |
org.w3c.dom.Node |
getNode()
Get the DOM Node that contains or will contain the transformation result. |
void |
setByteStream(java.io.OutputStream byteStream)
Set the byte stream to contain the transformation result. |
void |
setCharacterStream(java.io.Writer characterStream)
Set the character stream for this output target. |
void |
setDocumentHandler(org.xml.sax.DocumentHandler handler)
Set a SAX DocumentHandler to process the result tree events. |
void |
setEncoding(java.lang.String encoding)
Set the character encoding, if known. |
void |
setFileName(java.lang.String fileName)
Set the file name or URL where the transformation result will be written. |
void |
setNode(org.w3c.dom.Node node)
Set the DOM Node that will contain the transformation reasult. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
fileName
private java.lang.String fileName
byteStream
private java.io.OutputStream byteStream
encoding
private java.lang.String encoding
characterStream
private java.io.Writer characterStream
node
private org.w3c.dom.Node node
formatterListener
private org.xml.sax.DocumentHandler formatterListener
| Constructor Detail |
XSLTResultTarget
public XSLTResultTarget()
- Zero-argument default constructor -- Before you can use the new XSLTResultTarget object in a transformation,
you must define the output container by setting its FileName, CharacterStrea, ByteStream, or Node property.
XSLTResultTarget
public XSLTResultTarget(java.lang.String fileName)
- Create a new output target with a file name -- the equivalent of creating an output target
with the zero-argument constructor and setting the new object's FileName property.
XSLTResultTarget
public XSLTResultTarget(java.io.OutputStream byteStream)
- Create a new output target with a byte stream -- the equivalent of creating an output target
with the zero-argument constructor and setting the new object's ByteStream property.
XSLTResultTarget
public XSLTResultTarget(java.io.Writer characterStream)
- Create a new output target with a character stream -- the equivalent of creating an output target
with the zero-argument constructor and setting the new object's CharacterStream property.
XSLTResultTarget
public XSLTResultTarget(org.w3c.dom.Node n)
- Create a new output target with a DOM Node -- the equivalent of creating an output target
with the zero-argument constructor and setting the new object's Node property.
XSLTResultTarget
public XSLTResultTarget(org.xml.sax.DocumentHandler handler)
- Create a new output target with a SAX Document handler, which
will handle result events -- the equivalent of creating an output target with the
zero-argument constructor and setting the new object's DocyumentHandler property.
| Method Detail |
setFileName
public void setFileName(java.lang.String fileName)
- Set the file name or URL where the transformation result will be written.
getFileName
public java.lang.String getFileName()
- Get the file name where the results are or will be written, or null if none was supplied.
setByteStream
public void setByteStream(java.io.OutputStream byteStream)
- Set the byte stream to contain the transformation result.
getByteStream
public java.io.OutputStream getByteStream()
- Get the byte stream that contains or will contain the transformation result.
setEncoding
public void setEncoding(java.lang.String encoding)
- Set the character encoding, if known.
getEncoding
public java.lang.String getEncoding()
- Get the character encoding that was used.
setCharacterStream
public void setCharacterStream(java.io.Writer characterStream)
- Set the character stream for this output target.
getCharacterStream
public java.io.Writer getCharacterStream()
- Get the character stream for this output target.
setNode
public void setNode(org.w3c.dom.Node node)
- Set the DOM Node that will contain the transformation reasult.
getNode
public org.w3c.dom.Node getNode()
- Get the DOM Node that contains or will contain the transformation result.
setDocumentHandler
public void setDocumentHandler(org.xml.sax.DocumentHandler handler)
- Set a SAX DocumentHandler to process the result tree events.
You can process events as they occur
rather than waiting for the transformation to be completed.
getDocumentHandler
public org.xml.sax.DocumentHandler getDocumentHandler()
- Get the SAX DocumentHandler that processes the result tree events.
You can use the DocumentHandler to process events as they occur
rather than waiting for the transformation to be completed.
|
|||||||||
| Home >> All >> org >> apache >> xalan >> [ xslt overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.xalan.xslt.XSLTResultTarget