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, wait
getDescription
getInputStream
public boolean exists()
Resource
public boolean isReadable()
isReadable
in interface Resource
public URL getURL() throws IOException
getURL
in interface Resource
IOException
public URI getURI() throws IOException
getURI
in interface Resource
IOException
public File getFile() throws IOException
getFile
in interface Resource
IOException
public long contentLength() throws IOException
contentLength
in interface Resource
IOException
public long lastModified() throws IOException
lastModified
in interface Resource
IOException
protected File getFileForLastModifiedCheck() throws IOException
IOException
public Resource createRelative(String relativePath) throws IOException
createRelative
in interface Resource
IOException
public String getFilename()
getFilename
in interface Resource
Copyright © 2016. All Rights Reserved.