public abstract class AbstractResource extends java.lang.Object implements Resource
| Constructor and Description |
|---|
AbstractResource() |
| Modifier and Type | Method and Description |
|---|---|
long |
contentLength() |
Resource |
createRelative(java.lang.String relativePath) |
boolean |
equals(java.lang.Object obj) |
boolean |
exists()
Whether the resource exists on the classpath
|
java.io.File |
getFile() |
protected java.io.File |
getFileForLastModifiedCheck() |
java.lang.String |
getFilename() |
java.net.URI |
getURI() |
java.net.URL |
getURL() |
int |
hashCode() |
boolean |
isOpen() |
boolean |
isReadable() |
long |
lastModified() |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDescriptiongetInputStreampublic boolean exists()
Resourcepublic boolean isReadable()
isReadable in interface Resourcepublic java.net.URL getURL()
throws java.io.IOException
public java.net.URI getURI()
throws java.io.IOException
public java.io.File getFile()
throws java.io.IOException
public long contentLength()
throws java.io.IOException
contentLength in interface Resourcejava.io.IOExceptionpublic long lastModified()
throws java.io.IOException
lastModified in interface Resourcejava.io.IOExceptionprotected java.io.File getFileForLastModifiedCheck()
throws java.io.IOException
java.io.IOExceptionpublic Resource createRelative(java.lang.String relativePath) throws java.io.IOException
createRelative in interface Resourcejava.io.IOExceptionpublic java.lang.String getFilename()
getFilename in interface Resourcepublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2019. All rights reserved.