public abstract class AbstractFileResolvingResource extends AbstractResource
| Constructor and Description |
|---|
AbstractFileResolvingResource() |
| Modifier and Type | Method and Description |
|---|---|
long |
contentLength() |
boolean |
exists()
Whether the resource exists on the classpath
|
java.io.File |
getFile() |
protected java.io.File |
getFile(java.net.URI uri) |
protected java.io.File |
getFileForLastModifiedCheck() |
boolean |
isReadable() |
long |
lastModified() |
createRelative, equals, getFilename, getURI, getURL, hashCode, isOpen, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDescriptiongetInputStreampublic java.io.File getFile()
throws java.io.IOException
getFile in interface ResourcegetFile in class AbstractResourcejava.io.IOExceptionprotected java.io.File getFileForLastModifiedCheck()
throws java.io.IOException
getFileForLastModifiedCheck in class AbstractResourcejava.io.IOExceptionprotected java.io.File getFile(java.net.URI uri)
throws java.io.IOException
java.io.IOExceptionpublic boolean exists()
Resourceexists in interface Resourceexists in class AbstractResourcepublic boolean isReadable()
isReadable in interface ResourceisReadable in class AbstractResourcepublic long contentLength()
throws java.io.IOException
contentLength in interface ResourcecontentLength in class AbstractResourcejava.io.IOExceptionpublic long lastModified()
throws java.io.IOException
lastModified in interface ResourcelastModified in class AbstractResourcejava.io.IOExceptionCopyright © 2019. All rights reserved.