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
|
File |
getFile() |
protected File |
getFile(URI uri) |
protected File |
getFileForLastModifiedCheck() |
boolean |
isReadable() |
long |
lastModified() |
createRelative, equals, getFilename, getURI, getURL, hashCode, isOpen, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDescription
getInputStream
public File getFile() throws IOException
getFile
in interface Resource
getFile
in class AbstractResource
IOException
protected File getFileForLastModifiedCheck() throws IOException
getFileForLastModifiedCheck
in class AbstractResource
IOException
protected File getFile(URI uri) throws IOException
IOException
public boolean exists()
Resource
exists
in interface Resource
exists
in class AbstractResource
public boolean isReadable()
isReadable
in interface Resource
isReadable
in class AbstractResource
public long contentLength() throws IOException
contentLength
in interface Resource
contentLength
in class AbstractResource
IOException
public long lastModified() throws IOException
lastModified
in interface Resource
lastModified
in class AbstractResource
IOException
Copyright © 2020. All rights reserved.