Example usage for Java com.vaadin.server StreamResource fields, constructors, methods, implement or subclass
The text is from its open source code.
StreamResource(StreamSource streamSource, String filename) Creates a new stream resource for downloading from stream. |
DownloadStream | getStream() |
void | setBufferSize(int bufferSize) Sets the size of the download buffer used for this resource. |
void | setCacheTime(long cacheTime) Sets the length of cache expiration time. |
void | setFilename(String filename) Sets the filename. |
void | setMIMEType(String mimeType) Sets the mime type of the resource. |