|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.util.resource.AbstractResourceStream org.apache.wicket.util.resource.UrlResourceStream
public class UrlResourceStream
UrlResourceStream implements IResource for URLs.
IResourceStream
,
IModifiable
,
Serialized FormConstructor Summary | |
---|---|
UrlResourceStream(java.net.URL url)
Construct. |
Method Summary | |
---|---|
void |
close()
Closes this resource. |
java.lang.String |
getContentType()
Gets the mime type of this resource |
java.io.InputStream |
getInputStream()
Gets the resource stream. |
java.net.URL |
getURL()
|
Time |
lastModifiedTime()
Gets the last time this modifiable thing changed. |
Bytes |
length()
Gets the size of this resource |
java.lang.String |
locationAsString()
|
java.lang.String |
toString()
|
Methods inherited from class org.apache.wicket.util.resource.AbstractResourceStream |
---|
getLocale, getStyle, getVariation, setLocale, setStyle, setVariation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UrlResourceStream(java.net.URL url)
url
- URL of resourceMethod Detail |
---|
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface IResourceStream
java.io.IOException
public java.io.InputStream getInputStream() throws ResourceStreamNotFoundException
IResourceStream
getInputStream
in interface IResourceStream
ResourceStreamNotFoundException
IResourceStream.close()
public java.net.URL getURL()
public Time lastModifiedTime()
IModifiable
lastModifiedTime
in interface IModifiable
lastModifiedTime
in class AbstractResourceStream
IModifiable.lastModifiedTime()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getContentType()
IResourceStream
getContentType
in interface IResourceStream
getContentType
in class AbstractResourceStream
WebResponse#detectContentType(org.apache.wicket.RequestCycle, String)
public Bytes length()
IResourceStream
length
in interface IResourceStream
length
in class AbstractResourceStream
null
if unknownpublic java.lang.String locationAsString()
locationAsString
in interface IFixedLocationResourceStream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |