com.vaadin.server.

Interface StreamVariable

  • All Superinterfaces:

    Serializable

    public interface StreamVariable
    extends Serializable

    StreamVariable is a special kind of variable whose value is streamed to an OutputStream provided by the getOutputStream() method. E.g. in web terminals StreamVariable can be used to send large files from browsers to the server without consuming large amounts of memory.

    Note, writing to the OutputStream is not synchronized by the terminal (to avoid stalls in other operations when e.g. streaming to a slow network service or file system). If UI is changed as a side effect of writing to the output stream, developer must handle synchronization manually.

    Since:

    6.5

    Author:

    Vaadin Ltd.

    See Also:

    PaintTarget.addVariable(VariableOwner, String, StreamVariable)