Previous Page Next Page
Setting the User Input Stream
To view the result file with the Result Viewer Bean, you usually set the report name to a physical .rst file. If you want to set the stream of the .rst file, you can use the methods below:
- setInputStream(InputStream ins, boolean zip)
Parameters
- ins - The user input stream.
- zip - Whether the result is compressed or not. To see whether the result is compressed or not, you can call the method below:
- boolean isZipStream(InputStream ins)
Parameter
- ins - The user input stream.
Return
- true - Compressed stream.
- false - Uncompressed stream.
Previous Page Next Page