|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.millstone.base.terminal.DownloadStream
Downloadable stream.
| Field Summary | |
static long |
DEFAULT_CACHETIME
Default cache time. |
static long |
MAX_CACHETIME
Maximum cache time. |
| Constructor Summary | |
DownloadStream(java.io.InputStream stream,
java.lang.String contentType,
java.lang.String fileName)
Creates a new instance of DownloadStream |
|
| Method Summary | |
int |
getBufferSize()
Get the size of the download buffer. |
long |
getCacheTime()
Get lenght of cache expiracy time. |
java.lang.String |
getContentType()
Get stream content type. |
java.lang.String |
getFileName()
Returns the file name. |
java.lang.String |
getParameter(java.lang.String name)
Get a paramater for download stream. |
java.util.Iterator |
getParameterNames()
Get the names of the parameters. |
java.io.InputStream |
getStream()
Get downloadable stream. |
void |
setBufferSize(int bufferSize)
Set the size of the download buffer. |
void |
setCacheTime(long cacheTime)
Set lenght of cache expiracy time. |
void |
setContentType(java.lang.String contentType)
Set stream content type. |
void |
setFileName(java.lang.String fileName)
Sets the file name. |
void |
setParameter(java.lang.String name,
java.lang.String value)
Set a paramater for download stream. |
void |
setStream(java.io.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(java.io.InputStream stream,
java.lang.String contentType,
java.lang.String fileName)
| Method Detail |
public java.io.InputStream getStream()
public void setStream(java.io.InputStream stream)
stream - The stream to setpublic java.lang.String getContentType()
public void setContentType(java.lang.String contentType)
contentType - The contentType to setpublic java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
fileName - The file name to set
public void setParameter(java.lang.String name,
java.lang.String value)
name - Name of the parameter to set.value - Value of the parameter to set.public java.lang.String getParameter(java.lang.String name)
name - Name of the parameter to set.
public java.util.Iterator getParameterNames()
public long getCacheTime()
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 | |||||||||