Example usage for Java com.vaadin.server DownloadStream fields, constructors, methods, implement or subclass
The text is from its open source code.
String | CONTENT_DISPOSITION |
DownloadStream(InputStream stream, String contentType, String fileName) Creates a new instance of DownloadStream. |
String | getContentDispositionFilename(String filename) Returns the filename formatted for inclusion in a Content-Disposition header. |
String | getContentType() Gets stream content type. |
String | getFileName() Returns the file name. |
String | getParameter(String name) Gets a paramater for download stream. |
void | setBufferSize(int bufferSize) Sets the size of the download buffer. |
void | setCacheTime(long cacheTime) Sets length of cache expiration time. |
void | setContentType(String contentType) Sets stream content type. |
void | setParameter(String name, String value) Sets a parameter for download stream. |
void | writeResponse(VaadinRequest request, VaadinResponse response) Writes this download stream to a Vaadin response. |