Package org.nd4j.common.io
Interface Resource
-
- All Superinterfaces:
InputStreamSource
- All Known Implementing Classes:
AbstractFileResolvingResource,AbstractResource,ClassPathResource,VfsResource
public interface Resource extends InputStreamSource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longcontentLength()ResourcecreateRelative(String var1)booleanexists()Whether the resource exists on the classpathStringgetDescription()FilegetFile()StringgetFilename()URIgetURI()URLgetURL()booleanisOpen()booleanisReadable()longlastModified()-
Methods inherited from interface org.nd4j.common.io.InputStreamSource
getInputStream
-
-
-
-
Method Detail
-
exists
boolean exists()
Whether the resource exists on the classpath- Returns:
-
isReadable
boolean isReadable()
- Returns:
-
isOpen
boolean isOpen()
- Returns:
-
getURL
URL getURL() throws IOException
- Returns:
- Throws:
IOException
-
getURI
URI getURI() throws IOException
- Returns:
- Throws:
IOException
-
getFile
File getFile() throws IOException
- Returns:
- Throws:
IOException
-
contentLength
long contentLength() throws IOException- Returns:
- Throws:
IOException
-
lastModified
long lastModified() throws IOException- Returns:
- Throws:
IOException
-
createRelative
Resource createRelative(String var1) throws IOException
- Parameters:
var1-- Returns:
- Throws:
IOException
-
getFilename
String getFilename()
- Returns:
-
getDescription
String getDescription()
- Returns:
-
-