com.ddtek.xmlconverter
Class InputStreamResult
java.lang.Object
com.ddtek.xmlconverter.InputStreamResult
- All Implemented Interfaces:
- Result
public class InputStreamResult
- extends Object
- implements Result
The class InputStreamResult is used to specify that the user of Converter
wants
to read the result of the conversion with a InputStream
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InputStreamResult
public InputStreamResult()
- Create an empty InputStreamResult. After starting the conversion, the caller
should call getInputStream to get the InputStream.
getSystemId
public String getSystemId()
- Get the SystemId of the result data. This always returns null.
- Specified by:
getSystemId
in interface Result
getInputStream
public InputStream getInputStream()
- Get the InputStream, which is used to read the result data.
If the application wants to read the Converter result data with an
InputStream, it should create an empty InputStreamResult and pass it as
the result parameter of the
convert(Source, Result)
method
After convert returns, the application can use getInputStream()
to get the InputStream containing the result data.
- Returns:
- The InputStream.