|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.markup.html.JavascriptPackageResource.FilteringResourceStream
protected abstract class JavascriptPackageResource.FilteringResourceStream
Resource Stream that caches the stripped content.
Constructor Summary | |
---|---|
protected |
JavascriptPackageResource.FilteringResourceStream()
|
Method Summary | |
---|---|
void |
close()
Closes the resource. |
protected abstract byte[] |
filterContent(byte[] input)
|
String |
getContentType()
Gets the mime type of this resource |
InputStream |
getInputStream()
Gets the resource stream. |
Locale |
getLocale()
|
protected abstract IResourceStream |
getOriginalResourceStream()
|
Time |
lastModifiedTime()
Gets the last time this modifiable thing changed. |
long |
length()
Gets the size of this resource in bytes TODO 1.5: rename to lengthInBytes() or let it return some sort of size object |
void |
setLocale(Locale locale)
This method shouldn't be used for the outside, It is used by the Loaders to set the resolved locale. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected JavascriptPackageResource.FilteringResourceStream()
Method Detail |
---|
public void close() throws IOException
IResourceStream
close
in interface Closeable
close
in interface IResourceStream
IOException
IResourceStream.close()
public String getContentType()
IResourceStream
getContentType
in interface IResourceStream
ResourceStreamRequestTarget
handle the Content-Type automaticallyIResourceStream.getContentType()
public InputStream getInputStream() throws ResourceStreamNotFoundException
IResourceStream
getInputStream
in interface IResourceStream
ResourceStreamNotFoundException
IResourceStream.getInputStream()
public Locale getLocale()
getLocale
in interface IResourceStream
IResourceStream.getLocale()
public Time lastModifiedTime()
IModifiable
lastModifiedTime
in interface IModifiable
Time
IModifiable.lastModifiedTime()
public long length()
IResourceStream
length
in interface IResourceStream
IResourceStream.length()
public void setLocale(Locale locale)
IResourceStream
setLocale
in interface IResourceStream
locale
- The Locale where this stream did resolve to.IResourceStream.setLocale(java.util.Locale)
public String toString()
toString
in class Object
protected abstract byte[] filterContent(byte[] input)
protected abstract IResourceStream getOriginalResourceStream()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |