public static interface ResourceView.HasStreamSettings
Modifier and Type | Method and Description |
---|---|
int |
getBufferSize() |
long |
getCacheTime() |
java.lang.String |
getFileName() |
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(java.lang.String fileName)
Sets the filename.
|
void setCacheTime(long cacheTime)
This gives the adapter the possibility cache streams sent to the client. The caching may be made in adapter or at the client if the client supports caching. Zero or negative value disables the caching of this stream.
cacheTime
- the cache time in millisecondslong getCacheTime()
void setBufferSize(int bufferSize)
bufferSize
- the size of the buffer in bytesint getBufferSize()
void setFileName(java.lang.String fileName)
fileName
- the filename to setjava.lang.String getFileName()