|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.util.resource.AbstractResourceStreamWriter
public abstract class AbstractResourceStreamWriter
Base implementation of an IResourceStreamWriter so that you only have to override the
IResourceStreamWriter.write(java.io.OutputStream)
Don't forget to overwrite the
IResourceStream.length()
method if you do know the total length that will be generated.
IResourceStreamWriter
,
Serialized FormConstructor Summary | |
---|---|
AbstractResourceStreamWriter()
|
Method Summary | |
---|---|
void |
close()
this method should not be used as it is not required for resource writers resource write generate content directly, not using an input stream, so there's nothing to close later. |
java.io.InputStream |
getInputStream()
this method should not be used as it is not required for resource writers |
java.util.Locale |
getLocale()
|
Time |
lastModifiedTime()
Just returns now. |
long |
length()
Default implementation to return -1. |
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.IResourceStreamWriter |
---|
write |
Methods inherited from interface org.apache.wicket.util.resource.IResourceStream |
---|
getContentType |
Constructor Detail |
---|
public AbstractResourceStreamWriter()
Method Detail |
---|
public long length()
length
in interface IResourceStream
IResourceStream.length()
public java.util.Locale getLocale()
getLocale
in interface IResourceStream
IResourceStream.getLocale()
public void setLocale(java.util.Locale locale)
IResourceStream
setLocale
in interface IResourceStream
locale
- The Locale where this stream did resolve to.IResourceStream.setLocale(java.util.Locale)
public Time lastModifiedTime()
lastModifiedTime
in interface IModifiable
Time
IModifiable.lastModifiedTime()
public final java.io.InputStream getInputStream() throws ResourceStreamNotFoundException
getInputStream
in interface IResourceStream
ResourceStreamNotFoundException
IResourceStream.close()
public final void close() throws java.io.IOException
close
in interface IResourceStream
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |