public class DelegatingResource
extends java.lang.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(java.lang.String relativePath) |
boolean |
equals(java.lang.Object obj) |
boolean |
exists() |
java.lang.String |
getDescription() |
java.io.File |
getFile() |
java.lang.String |
getFilename() |
java.io.InputStream |
getInputStream() |
java.net.URI |
getURI() |
java.net.URL |
getURL() |
int |
hashCode() |
boolean |
isOpen() |
boolean |
isReadable() |
long |
lastModified() |
java.lang.String |
toString() |
public DelegatingResource(org.springframework.core.io.Resource resource)
public boolean exists()
exists in interface org.springframework.core.io.Resourcepublic java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface org.springframework.core.io.InputStreamSourcejava.io.IOExceptionpublic boolean isReadable()
isReadable in interface org.springframework.core.io.Resourcepublic boolean isOpen()
isOpen in interface org.springframework.core.io.Resourcepublic java.net.URL getURL()
throws java.io.IOException
getURL in interface org.springframework.core.io.Resourcejava.io.IOExceptionpublic java.net.URI getURI()
throws java.io.IOException
getURI in interface org.springframework.core.io.Resourcejava.io.IOExceptionpublic java.io.File getFile()
throws java.io.IOException
getFile in interface org.springframework.core.io.Resourcejava.io.IOExceptionpublic long lastModified()
throws java.io.IOException
lastModified in interface org.springframework.core.io.Resourcejava.io.IOExceptionpublic org.springframework.core.io.Resource createRelative(java.lang.String relativePath)
throws java.io.IOException
createRelative in interface org.springframework.core.io.Resourcejava.io.IOExceptionpublic java.lang.String getFilename()
getFilename in interface org.springframework.core.io.Resourcepublic java.lang.String getDescription()
getDescription in interface org.springframework.core.io.Resourcepublic long contentLength()
throws java.io.IOException
contentLength in interface org.springframework.core.io.Resourcejava.io.IOExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018 Jasig. All Rights Reserved.