public abstract class AbstractResource extends Object implements Resource
| Constructor and Description |
|---|
AbstractResource() |
| Modifier and Type | Method and Description |
|---|---|
long |
contentLength() |
Resource |
createRelative(String relativePath) |
boolean |
equals(Object obj) |
boolean |
exists()
Whether the resource exists on the classpath
|
File |
getFile() |
protected File |
getFileForLastModifiedCheck() |
String |
getFilename() |
URI |
getURI() |
URL |
getURL() |
int |
hashCode() |
boolean |
isOpen() |
boolean |
isReadable() |
long |
lastModified() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDescriptiongetInputStreampublic boolean exists()
Resourcepublic boolean isReadable()
isReadable in interface Resourcepublic URL getURL() throws IOException
getURL in interface ResourceIOExceptionpublic URI getURI() throws IOException
getURI in interface ResourceIOExceptionpublic File getFile() throws IOException
getFile in interface ResourceIOExceptionpublic long contentLength()
throws IOException
contentLength in interface ResourceIOExceptionpublic long lastModified()
throws IOException
lastModified in interface ResourceIOExceptionprotected File getFileForLastModifiedCheck() throws IOException
IOExceptionpublic Resource createRelative(String relativePath) throws IOException
createRelative in interface ResourceIOExceptionpublic String getFilename()
getFilename in interface ResourceCopyright © 2017. All Rights Reserved.