|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.efaps.ui.wicket.resources.AbstractEFapsResource.AbstractEFapsResourceStream
protected abstract class AbstractEFapsResource.AbstractEFapsResourceStream
Abstract class implementing the IResourceStream. It is used to retreive an InputStream from Data based on an Object from the eFaps-DataBase.
| Constructor Summary | |
|---|---|
AbstractEFapsResource.AbstractEFapsResourceStream()
constructor that stores the time of the instanciation. |
|
| Method Summary | |
|---|---|
protected void |
checkData(boolean _checkDuration)
method that checks if the data was allready retrieved from the eFaps-DataBase or if it must be reloaded due to cache expire. |
void |
close()
close the resource. |
InputStream |
getInputStream()
get the underlying inputstream. |
Locale |
getLocale()
|
org.apache.wicket.util.time.Time |
lastModifiedTime()
Gets the last time this modifiable thing changed. |
long |
length()
Gets the size of this resource in bytes. |
protected void |
setData()
set the Data into the instance variable data. |
void |
setLocale(Locale _locale)
This method shouldn't be used for the outside, It is used by the Loaders to set the resolved locale. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.wicket.util.resource.IResourceStream |
|---|
getContentType |
| Constructor Detail |
|---|
public AbstractEFapsResource.AbstractEFapsResourceStream()
| Method Detail |
|---|
public void close()
throws IOException
close in interface Closeableclose in interface org.apache.wicket.util.resource.IResourceStreamIOException - on error
public InputStream getInputStream()
throws org.apache.wicket.util.resource.ResourceStreamNotFoundException
getInputStream in interface org.apache.wicket.util.resource.IResourceStreamorg.apache.wicket.util.resource.ResourceStreamNotFoundException - on errorpublic Locale getLocale()
getLocale in interface org.apache.wicket.util.resource.IResourceStreampublic long length()
length in interface org.apache.wicket.util.resource.IResourceStreampublic void setLocale(Locale _locale)
setLocale in interface org.apache.wicket.util.resource.IResourceStream_locale - The Locale where this stream did resolve to.public org.apache.wicket.util.time.Time lastModifiedTime()
lastModifiedTime in interface org.apache.wicket.util.watch.IModifiableTimeprotected void checkData(boolean _checkDuration)
_checkDuration - should be checked if the cache is expired or
notprotected void setData()
data.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||