public class VfsResource
extends java.lang.Object
implements org.springframework.core.io.Resource
| Constructor and Description |
|---|
VfsResource(org.apache.commons.vfs2.FileObject fileObject) |
| Modifier and Type | Method and Description |
|---|---|
long |
contentLength() |
org.springframework.core.io.Resource |
createRelative(java.lang.String relativePath) |
boolean |
exists() |
java.lang.String |
getDescription() |
java.io.File |
getFile() |
java.lang.String |
getFilename() |
org.apache.commons.vfs2.FileObject |
getFileObject() |
java.io.InputStream |
getInputStream() |
java.net.URI |
getURI() |
java.net.URL |
getURL() |
boolean |
isOpen() |
boolean |
isReadable() |
long |
lastModified() |
public org.springframework.core.io.Resource createRelative(java.lang.String relativePath)
throws java.io.IOException
createRelative in interface org.springframework.core.io.Resourcejava.io.IOExceptionpublic boolean exists()
exists in interface org.springframework.core.io.Resourcepublic java.lang.String getDescription()
getDescription in interface org.springframework.core.io.Resourcepublic java.io.File getFile()
throws java.io.IOException
getFile in interface org.springframework.core.io.Resourcejava.io.IOExceptionpublic java.lang.String getFilename()
getFilename in interface org.springframework.core.io.Resourcepublic java.net.URI getURI()
throws java.io.IOException
getURI in interface org.springframework.core.io.Resourcejava.io.IOExceptionpublic java.net.URL getURL()
throws java.io.IOException
getURL in interface org.springframework.core.io.Resourcejava.io.IOExceptionpublic boolean isOpen()
isOpen in interface org.springframework.core.io.Resourcepublic boolean isReadable()
isReadable in interface org.springframework.core.io.Resourcepublic long lastModified()
throws java.io.IOException
lastModified in interface org.springframework.core.io.Resourcejava.io.IOExceptionpublic java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface org.springframework.core.io.InputStreamSourcejava.io.IOExceptionpublic org.apache.commons.vfs2.FileObject getFileObject()
public long contentLength()
contentLength in interface org.springframework.core.io.ResourceCopyright © 2007–2020. All rights reserved.