org.efaps.ui.wicket.resources
Class AbstractEFapsResource.AbstractEFapsResourceStream
java.lang.Object
org.efaps.ui.wicket.resources.AbstractEFapsResource.AbstractEFapsResourceStream
- All Implemented Interfaces:
- java.io.Closeable, java.io.Serializable, org.apache.wicket.IClusterable, org.apache.wicket.util.resource.IResourceStream, org.apache.wicket.util.watch.IModifiable
- Direct Known Subclasses:
- XSLResource.XSLResourceStream
- Enclosing class:
- AbstractEFapsResource
protected abstract class AbstractEFapsResource.AbstractEFapsResourceStream
- extends java.lang.Object
- implements org.apache.wicket.util.resource.IResourceStream
Abstract class implementing the IResourceStream. It is used to retreive an
InputStream from Data based on an Object from the eFaps-DataBase.
- See Also:
- Serialized Form
|
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()
|
java.io.InputStream |
getInputStream()
|
java.util.Locale |
getLocale()
|
org.apache.wicket.util.time.Time |
lastModifiedTime()
|
long |
length()
|
protected void |
setData()
set the Data into the instance variable data |
void |
setLocale(java.util.Locale _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 |
AbstractEFapsResource.AbstractEFapsResourceStream
public AbstractEFapsResource.AbstractEFapsResourceStream()
- constructor that stores the time of the instanciation
close
public void close()
throws java.io.IOException
- Specified by:
close in interface java.io.Closeable- Specified by:
close in interface org.apache.wicket.util.resource.IResourceStream
- Throws:
java.io.IOException
getInputStream
public java.io.InputStream getInputStream()
throws org.apache.wicket.util.resource.ResourceStreamNotFoundException
- Specified by:
getInputStream in interface org.apache.wicket.util.resource.IResourceStream
- Throws:
org.apache.wicket.util.resource.ResourceStreamNotFoundException
getLocale
public java.util.Locale getLocale()
- Specified by:
getLocale in interface org.apache.wicket.util.resource.IResourceStream
length
public long length()
- Specified by:
length in interface org.apache.wicket.util.resource.IResourceStream
setLocale
public void setLocale(java.util.Locale _locale)
- Specified by:
setLocale in interface org.apache.wicket.util.resource.IResourceStream
lastModifiedTime
public org.apache.wicket.util.time.Time lastModifiedTime()
- Specified by:
lastModifiedTime in interface org.apache.wicket.util.watch.IModifiable
checkData
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
- Parameters:
_checkDuration - should be checked if the cache is expired or not
setData
protected void setData()
- set the Data into the instance variable
data
Copyright © 2003-2010 The eFaps Team. All Rights Reserved.