|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectwicket.util.resource.AbstractResourceStream
wicket.util.resource.FileResourceStream
A FileResourceStream is an IResource implementation for files.
IResourceStream,
IModifiable,
Serialized Form| Constructor Summary | |
FileResourceStream(File file)
Private constructor to force use of static factory methods. |
|
| Method Summary | |
void |
close()
Closes this resource. |
java.lang.String |
getContentType()
Gets the mime type of this resource |
File |
getFile()
|
java.io.InputStream |
getInputStream()
Gets the resource stream. |
Time |
lastModifiedTime()
Gets the last time this modifiable thing changed. |
long |
length()
Gets the size of this resource |
java.lang.String |
toString()
|
| Methods inherited from class wicket.util.resource.AbstractResourceStream |
asString, getCharset, setCharset |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public FileResourceStream(File file)
file - File containing resource| Method Detail |
public void close()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getContentType()
IResourceStream
public File getFile()
public java.io.InputStream getInputStream()
throws ResourceStreamNotFoundException
IResourceStream
ResourceStreamNotFoundExceptionIResourceStream.close()public Time lastModifiedTime()
IModifiable
IModifiable.lastModifiedTime()public java.lang.String toString()
Object.toString()public long length()
IResourceStream
IResourceStream.length()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||