Package org.nd4j.common.io
Class VfsResource
- java.lang.Object
-
- org.nd4j.common.io.AbstractResource
-
- org.nd4j.common.io.VfsResource
-
- All Implemented Interfaces:
InputStreamSource,Resource
public class VfsResource extends AbstractResource
-
-
Constructor Summary
Constructors Constructor Description VfsResource(Object resources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcontentLength()ResourcecreateRelative(String relativePath)booleanequals(Object obj)booleanexists()Whether the resource exists on the classpathStringgetDescription()FilegetFile()StringgetFilename()InputStreamgetInputStream()URIgetURI()URLgetURL()inthashCode()booleanisReadable()longlastModified()-
Methods inherited from class org.nd4j.common.io.AbstractResource
getFileForLastModifiedCheck, isOpen, toString
-
-
-
-
Constructor Detail
-
VfsResource
public VfsResource(Object resources)
-
-
Method Detail
-
getInputStream
public InputStream getInputStream() throws IOException
- Throws:
IOException
-
exists
public boolean exists()
Description copied from interface:ResourceWhether the resource exists on the classpath- Specified by:
existsin interfaceResource- Overrides:
existsin classAbstractResource- Returns:
-
isReadable
public boolean isReadable()
- Specified by:
isReadablein interfaceResource- Overrides:
isReadablein classAbstractResource- Returns:
-
getURL
public URL getURL() throws IOException
- Specified by:
getURLin interfaceResource- Overrides:
getURLin classAbstractResource- Returns:
- Throws:
IOException
-
getURI
public URI getURI() throws IOException
- Specified by:
getURIin interfaceResource- Overrides:
getURIin classAbstractResource- Returns:
- Throws:
IOException
-
getFile
public File getFile() throws IOException
- Specified by:
getFilein interfaceResource- Overrides:
getFilein classAbstractResource- Returns:
- Throws:
IOException
-
contentLength
public long contentLength() throws IOException- Specified by:
contentLengthin interfaceResource- Overrides:
contentLengthin classAbstractResource- Returns:
- Throws:
IOException
-
lastModified
public long lastModified() throws IOException- Specified by:
lastModifiedin interfaceResource- Overrides:
lastModifiedin classAbstractResource- Returns:
- Throws:
IOException
-
createRelative
public Resource createRelative(String relativePath) throws IOException
- Specified by:
createRelativein interfaceResource- Overrides:
createRelativein classAbstractResource- Returns:
- Throws:
IOException
-
getFilename
public String getFilename()
- Specified by:
getFilenamein interfaceResource- Overrides:
getFilenamein classAbstractResource- Returns:
-
getDescription
public String getDescription()
- Returns:
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classAbstractResource
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractResource
-
-