com.ddtek.xmlconverter
Class XMLStreamReaderResult

java.lang.Object
  extended by com.ddtek.xmlconverter.XMLStreamReaderResult
All Implemented Interfaces:
Result

public class XMLStreamReaderResult
extends Object
implements Result

The XMLStreamReaderResult is used to specify that the user of Converter wants to read the result of the conversion with an XMLStreamReader.


Field Summary
 
Fields inherited from interface javax.xml.transform.Result
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
 
Constructor Summary
XMLStreamReaderResult()
          Create an empty XMLStreamReaderResult.
 
Method Summary
 String getSystemId()
          Get the SystemId of the result data.
 javax.xml.stream.XMLStreamReader getXMLStreamReader()
          Get the XMLStreamReader which is used to read the result data.
 void setSystemId(String systemId)
          Set the SystemId of the result data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLStreamReaderResult

public XMLStreamReaderResult()
Create an empty XMLStreamReaderResult. After starting the conversion, the caller should call getXMLStreamReader to get the XMLStreamReader.

Method Detail

setSystemId

public void setSystemId(String systemId)
Set the SystemId of the result data.

Specified by:
setSystemId in interface Result

getSystemId

public String getSystemId()
Get the SystemId of the result data.

Specified by:
getSystemId in interface Result

getXMLStreamReader

public javax.xml.stream.XMLStreamReader getXMLStreamReader()
Get the XMLStreamReader which is used to read the result data.

If the application wants to read the Converter result data with an XMLStreamReader, it should create an empty XMLStreamReaderResult and pass it as the result parameter of the convert(Source, Result) method. After convert returns, the application must use getXMLStreamReader() to get the Reader containing the result data.

Returns:
The Reader.
See Also:
ConvertToXML.getXMLStreamReader(Source), ConverterResolver.getXMLStreamReader(String, String)