|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface must be implemented by classes wishing to provide Application resources. Application resources are a set of named resources (pictures, sounds, etc) associated with some specific application. Having named application resources provides a convenient method for having inter-theme common resources for an application.
Field Summary | |
static long |
DEFAULT_CACHETIME
Default cache time. |
Method Summary | |
Application |
getApplication()
Get the application of the resource |
int |
getBufferSize()
Get the size of the download buffer used for this resource. |
long |
getCacheTime()
Get lenght of cache expiracy time. |
java.lang.String |
getFilename()
Get virtual filename for the resource |
DownloadStream |
getStream()
Get resource as stream |
Methods inherited from interface org.millstone.base.terminal.Resource |
getMIMEType |
Field Detail |
public static final long DEFAULT_CACHETIME
Method Detail |
public DownloadStream getStream()
public Application getApplication()
public java.lang.String getFilename()
public long getCacheTime()
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. Default is DEFAULT_CACHETIME.
public int getBufferSize()
If the buffer size is 0, the buffer size is decided by the terminal adapter. The default value is 0.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |