|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.util.resource.AbstractResourceStream
public abstract class AbstractResourceStream
IResourceStream
,
Serialized FormConstructor Summary | |
---|---|
AbstractResourceStream()
|
Method Summary | |
---|---|
String |
asString()
|
protected Charset |
getCharset()
|
String |
getContentType()
Gets the mime type of this resource |
Locale |
getLocale()
|
String |
getStyle()
|
String |
getVariation()
|
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 |
setCharset(Charset charset)
Sets the character set used for reading this resource. |
void |
setLocale(Locale locale)
This method shouldn't be used for the outside, It is used by the Loaders to set the resolved locale. |
void |
setStyle(String style)
This method shouldn't be used for the outside, It is used by the Loaders to set the resolved Style. |
void |
setVariation(String variation)
This method shouldn't be used for the outside, It is used by the Loaders to set the resolved variation. |
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 |
---|
close, getInputStream |
Constructor Detail |
---|
public AbstractResourceStream()
Method Detail |
---|
public void setCharset(Charset charset)
setCharset
in interface IStringResourceStream
charset
- Charset for componentpublic String asString()
asString
in interface IStringResourceStream
protected Charset getCharset()
public Locale getLocale()
getLocale
in interface IResourceStream
IResourceStream.getLocale()
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 getStyle()
getStyle
in interface IResourceStream
IResourceStream.getStyle()
public String getVariation()
getVariation
in interface IResourceStream
IResourceStream.getVariation()
public void setStyle(String style)
IResourceStream
setStyle
in interface IResourceStream
style
- The style where this stream did resolve to.IResourceStream.setStyle(java.lang.String)
public void setVariation(String variation)
IResourceStream
setVariation
in interface IResourceStream
variation
- The Variation where this stream did resolve to.IResourceStream.setVariation(java.lang.String)
public long length()
IResourceStream
length
in interface IResourceStream
IResourceStream.length()
public String getContentType()
IResourceStream
getContentType
in interface IResourceStream
ResourceStreamRequestHandler
handle the Content-Type automaticallyIResourceStream.getContentType()
public Time lastModifiedTime()
IModifiable
lastModifiedTime
in interface IModifiable
Time
IModifiable.lastModifiedTime()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |