public class TempFileStreamResource
extends com.vaadin.server.StreamResource
StreamSource
version which organises streaming via a temporary file.
Streamed content can be populated via OutputStream
provided by getTempFileOutputStream()
.
In order to set up the resource the following attributes are required to be set:
Constructor and Description |
---|
TempFileStreamResource() |
TempFileStreamResource(String filename) |
Modifier and Type | Method and Description |
---|---|
com.vaadin.server.DownloadStream |
getStream() |
info.magnolia.ui.framework.util.TempFileStreamResource.TempFileStreamSource |
getStreamSource() |
OutputStream |
getTempFileOutputStream() |
void |
setTempFileExtension(String extension) |
void |
setTempFileName(String name) |
public TempFileStreamResource(String filename)
public TempFileStreamResource()
public info.magnolia.ui.framework.util.TempFileStreamResource.TempFileStreamSource getStreamSource()
getStreamSource
in class com.vaadin.server.StreamResource
public com.vaadin.server.DownloadStream getStream()
getStream
in interface com.vaadin.server.ConnectorResource
getStream
in class com.vaadin.server.StreamResource
public void setTempFileName(String name)
public void setTempFileExtension(String extension)
public OutputStream getTempFileOutputStream() throws IOException
IOException
Copyright © 2018 Magnolia International Ltd.. All rights reserved.