##### Setting the user input stream

To view the result file with JReport Result Viewer, you will usually set the report name to a physical .rst file, or 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.