|
||||||||||
| 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 Form| Constructor Summary | |
|---|---|
AbstractResourceStream()
|
|
| Method Summary | |
|---|---|
java.lang.String |
asString()
|
protected java.nio.charset.Charset |
getCharset()
|
java.lang.String |
getContentType()
Gets the mime type of this resource |
java.util.Locale |
getLocale()
|
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(java.nio.charset.Charset charset)
Sets the character set used for reading this resource. |
void |
setLocale(java.util.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 |
|---|
close, getInputStream |
| Constructor Detail |
|---|
public AbstractResourceStream()
| Method Detail |
|---|
public void setCharset(java.nio.charset.Charset charset)
setCharset in interface IStringResourceStreamcharset - Charset for componentpublic java.lang.String asString()
asString in interface IStringResourceStreamprotected java.nio.charset.Charset getCharset()
public java.util.Locale getLocale()
getLocale in interface IResourceStreamIResourceStream.getLocale()public void setLocale(java.util.Locale locale)
IResourceStream
setLocale in interface IResourceStreamlocale - The Locale where this stream did resolve to.IResourceStream.setLocale(java.util.Locale)public long length()
IResourceStream
length in interface IResourceStreamIResourceStream.length()public java.lang.String getContentType()
IResourceStream
getContentType in interface IResourceStreamResourceStreamRequestTarget handle the Content-Type automaticallyIResourceStream.getContentType()public Time lastModifiedTime()
IModifiable
lastModifiedTime in interface IModifiableTimeIModifiable.lastModifiedTime()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||