|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.terminal.DownloadStream
public class DownloadStream
Downloadable stream.
| Field Summary | |
|---|---|
static long |
DEFAULT_CACHETIME
Default cache time. |
static long |
MAX_CACHETIME
Maximum cache time. |
| Constructor Summary | |
|---|---|
DownloadStream(InputStream stream,
String contentType,
String fileName)
Creates a new instance of DownloadStream. |
|
| Method Summary | |
|---|---|
int |
getBufferSize()
Gets the size of the download buffer. |
long |
getCacheTime()
Gets length of cache expiration time. |
String |
getContentType()
Gets stream content type. |
String |
getFileName()
Returns the file name. |
String |
getParameter(String name)
Gets a paramater for download stream. |
Iterator<String> |
getParameterNames()
Gets the names of the parameters. |
InputStream |
getStream()
Gets downloadable 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 |
setFileName(String fileName)
Sets the file name. |
void |
setParameter(String name,
String value)
Sets a paramater for download stream. |
void |
setStream(InputStream stream)
Sets the stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long MAX_CACHETIME
public static final long DEFAULT_CACHETIME
| Constructor Detail |
|---|
public DownloadStream(InputStream stream,
String contentType,
String fileName)
| Method Detail |
|---|
public InputStream getStream()
public void setStream(InputStream stream)
stream - The stream to setpublic String getContentType()
public void setContentType(String contentType)
contentType - the contentType to setpublic String getFileName()
public void setFileName(String fileName)
fileName - the file name to set.
public void setParameter(String name,
String value)
name - the Name of the parameter to set.value - the Value of the parameter to set.public String getParameter(String name)
name - the Name of the parameter to set.
public Iterator<String> getParameterNames()
public long getCacheTime()
DEFAULT_CACHETIME.
public void setCacheTime(long cacheTime)
cacheTime - the cache time in milliseconds.public int getBufferSize()
public void setBufferSize(int bufferSize)
bufferSize - the size of the buffer in bytes.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||