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, toString
public VfsResource(Object resources)
public InputStream getInputStream() throws IOException
IOException
public boolean exists()
Resource
exists
in interface Resource
exists
in class AbstractResource
public boolean isReadable()
isReadable
in interface Resource
isReadable
in class AbstractResource
public URL getURL() throws IOException
getURL
in interface Resource
getURL
in class AbstractResource
IOException
public URI getURI() throws IOException
getURI
in interface Resource
getURI
in class AbstractResource
IOException
public File getFile() throws IOException
getFile
in interface Resource
getFile
in class AbstractResource
IOException
public long contentLength() throws IOException
contentLength
in interface Resource
contentLength
in class AbstractResource
IOException
public long lastModified() throws IOException
lastModified
in interface Resource
lastModified
in class AbstractResource
IOException
public Resource createRelative(String relativePath) throws IOException
createRelative
in interface Resource
createRelative
in class AbstractResource
IOException
public String getFilename()
getFilename
in interface Resource
getFilename
in class AbstractResource
public String getDescription()
public boolean equals(Object obj)
equals
in class AbstractResource
public int hashCode()
hashCode
in class AbstractResource
Copyright © 2020. All rights reserved.