Class StringRepresentation

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

public class StringRepresentation extends Object implements Representation
  • Constructor Details

    • StringRepresentation

      public StringRepresentation(String string)
  • 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