public class VfsResource extends AbstractResource
| Constructor and Description |
|---|
VfsResource(Object resources) |
| Modifier and Type | Method and Description |
|---|---|
long |
contentLength() |
Resource |
createRelative(String relativePath) |
boolean |
equals(Object obj) |
boolean |
exists()
Whether the resource exists on the classpath
|
String |
getDescription() |
File |
getFile() |
String |
getFilename() |
InputStream |
getInputStream() |
URI |
getURI() |
URL |
getURL() |
int |
hashCode() |
boolean |
isReadable() |
long |
lastModified() |
getFileForLastModifiedCheck, isOpen, toStringpublic VfsResource(Object resources)
public InputStream getInputStream() throws IOException
IOExceptionpublic boolean exists()
Resourceexists in interface Resourceexists in class AbstractResourcepublic boolean isReadable()
isReadable in interface ResourceisReadable in class AbstractResourcepublic URL getURL() throws IOException
getURL in interface ResourcegetURL in class AbstractResourceIOExceptionpublic URI getURI() throws IOException
getURI in interface ResourcegetURI in class AbstractResourceIOExceptionpublic File getFile() throws IOException
getFile in interface ResourcegetFile in class AbstractResourceIOExceptionpublic long contentLength()
throws IOException
contentLength in interface ResourcecontentLength in class AbstractResourceIOExceptionpublic long lastModified()
throws IOException
lastModified in interface ResourcelastModified in class AbstractResourceIOExceptionpublic Resource createRelative(String relativePath) throws IOException
createRelative in interface ResourcecreateRelative in class AbstractResourceIOExceptionpublic String getFilename()
getFilename in interface ResourcegetFilename in class AbstractResourcepublic String getDescription()
public boolean equals(Object obj)
equals in class AbstractResourcepublic int hashCode()
hashCode in class AbstractResourceCopyright © 2017. All Rights Reserved.