Class InputStreamRepresentation

java.lang.Object
is.galia.resource.InputStreamRepresentation
All Implemented Interfaces:
Representation

public class InputStreamRepresentation extends Object implements Representation
Writes an InputStream directly to the response.
  • Constructor Details

    • InputStreamRepresentation

      public InputStreamRepresentation(InputStream inputStream)
  • Method Details

    • write

      public void write(OutputStream outputStream) throws IOException
      Description copied from interface: Representation
      Writes some kind of data (image data, HTML, JSON, etc.) to the given response stream for transmission to the client.
      Specified by:
      write in interface Representation
      Parameters:
      outputStream - Stream to write to, which should not be closed.
      Throws:
      IOException