public class VfsResource extends AbstractResource
| Constructor and Description |
|---|
VfsResource(java.lang.Object resources) |
| Modifier and Type | Method and Description |
|---|---|
long |
contentLength() |
Resource |
createRelative(java.lang.String relativePath) |
boolean |
equals(java.lang.Object obj) |
boolean |
exists()
Whether the resource exists on the classpath
|
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 |
isReadable() |
long |
lastModified() |
getFileForLastModifiedCheck, isOpen, toStringpublic java.io.InputStream getInputStream()
throws java.io.IOException
java.io.IOExceptionpublic boolean exists()
Resourceexists in interface Resourceexists in class AbstractResourcepublic boolean isReadable()
isReadable in interface ResourceisReadable in class AbstractResourcepublic java.net.URL getURL()
throws java.io.IOException
getURL in interface ResourcegetURL in class AbstractResourcejava.io.IOExceptionpublic java.net.URI getURI()
throws java.io.IOException
getURI in interface ResourcegetURI in class AbstractResourcejava.io.IOExceptionpublic java.io.File getFile()
throws java.io.IOException
getFile in interface ResourcegetFile in class AbstractResourcejava.io.IOExceptionpublic long contentLength()
throws java.io.IOException
contentLength in interface ResourcecontentLength in class AbstractResourcejava.io.IOExceptionpublic long lastModified()
throws java.io.IOException
lastModified in interface ResourcelastModified in class AbstractResourcejava.io.IOExceptionpublic Resource createRelative(java.lang.String relativePath) throws java.io.IOException
createRelative in interface ResourcecreateRelative in class AbstractResourcejava.io.IOExceptionpublic java.lang.String getFilename()
getFilename in interface ResourcegetFilename in class AbstractResourcepublic java.lang.String getDescription()
public boolean equals(java.lang.Object obj)
equals in class AbstractResourcepublic int hashCode()
hashCode in class AbstractResourceCopyright © 2019. All rights reserved.