public class DelegatingResource extends Object implements org.springframework.core.io.Resource
Resource, delegates all calls to the the wrapped resource.| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.core.io.Resource |
resource |
| Constructor and Description |
|---|
DelegatingResource(org.springframework.core.io.Resource resource) |
| Modifier and Type | Method and Description |
|---|---|
long |
contentLength() |
org.springframework.core.io.Resource |
createRelative(String relativePath) |
boolean |
equals(Object obj) |
boolean |
exists() |
String |
getDescription() |
File |
getFile() |
String |
getFilename() |
InputStream |
getInputStream() |
URI |
getURI() |
URL |
getURL() |
int |
hashCode() |
boolean |
isOpen() |
boolean |
isReadable() |
long |
lastModified() |
String |
toString() |
public DelegatingResource(org.springframework.core.io.Resource resource)
public boolean exists()
exists in interface org.springframework.core.io.Resourcepublic InputStream getInputStream() throws IOException
getInputStream in interface org.springframework.core.io.InputStreamSourceIOExceptionpublic boolean isReadable()
isReadable in interface org.springframework.core.io.Resourcepublic boolean isOpen()
isOpen in interface org.springframework.core.io.Resourcepublic URL getURL() throws IOException
getURL in interface org.springframework.core.io.ResourceIOExceptionpublic URI getURI() throws IOException
getURI in interface org.springframework.core.io.ResourceIOExceptionpublic File getFile() throws IOException
getFile in interface org.springframework.core.io.ResourceIOExceptionpublic long lastModified()
throws IOException
lastModified in interface org.springframework.core.io.ResourceIOExceptionpublic org.springframework.core.io.Resource createRelative(String relativePath) throws IOException
createRelative in interface org.springframework.core.io.ResourceIOExceptionpublic String getFilename()
getFilename in interface org.springframework.core.io.Resourcepublic String getDescription()
getDescription in interface org.springframework.core.io.Resourcepublic long contentLength()
throws IOException
contentLength in interface org.springframework.core.io.ResourceIOExceptionCopyright © 2015 Jasig. All Rights Reserved.