public class SpringResource
extends java.lang.Object
implements org.codehaus.groovy.grails.io.support.Resource
| Constructor and Description |
|---|
SpringResource(org.springframework.core.io.Resource springResource) |
| Modifier and Type | Method and Description |
|---|---|
long |
contentLength() |
org.codehaus.groovy.grails.io.support.Resource |
createRelative(java.lang.String relativePath) |
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() |
boolean |
isReadable() |
long |
lastModified() |
public SpringResource(org.springframework.core.io.Resource springResource)
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface org.codehaus.groovy.grails.io.support.Resourcejava.io.IOExceptionpublic boolean exists()
exists in interface org.codehaus.groovy.grails.io.support.Resourcepublic boolean isReadable()
isReadable in interface org.codehaus.groovy.grails.io.support.Resourcepublic java.net.URL getURL()
throws java.io.IOException
getURL in interface org.codehaus.groovy.grails.io.support.Resourcejava.io.IOExceptionpublic java.net.URI getURI()
throws java.io.IOException
getURI in interface org.codehaus.groovy.grails.io.support.Resourcejava.io.IOExceptionpublic java.io.File getFile()
throws java.io.IOException
getFile in interface org.codehaus.groovy.grails.io.support.Resourcejava.io.IOExceptionpublic long contentLength()
throws java.io.IOException
contentLength in interface org.codehaus.groovy.grails.io.support.Resourcejava.io.IOExceptionpublic long lastModified()
throws java.io.IOException
lastModified in interface org.codehaus.groovy.grails.io.support.Resourcejava.io.IOExceptionpublic java.lang.String getFilename()
getFilename in interface org.codehaus.groovy.grails.io.support.Resourcepublic java.lang.String getDescription()
getDescription in interface org.codehaus.groovy.grails.io.support.Resourcepublic org.codehaus.groovy.grails.io.support.Resource createRelative(java.lang.String relativePath)
createRelative in interface org.codehaus.groovy.grails.io.support.Resource