public class ResourceFile
extends java.io.File
| Constructor and Description |
|---|
ResourceFile(ResourceFile baseFile,
java.lang.String pathname)
C'tor for instantiating a resource file relative to another resource file.
|
ResourceFile(java.lang.String pathname)
C'tor for instantiating a resource file.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
exists() |
java.io.InputStream |
getInputStream()
Getter for an input stream to read this resource file.
|
ResourceFile |
getParentFile() |
java.lang.String |
getPath() |
java.lang.String |
getPathName()
Getter for the resource's path.
|
int |
hashCode() |
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getTotalSpace, getUsableSpace, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toString, toURI, toURLpublic ResourceFile(java.lang.String pathname)
pathname - The path to the resourcepublic ResourceFile(ResourceFile baseFile, java.lang.String pathname)
baseFile - The base file to which the relative path is to be considered.pathname - The relative path to the resource with respect to the base file.public java.io.InputStream getInputStream()
public final java.lang.String getPathName()
public final java.lang.String getPath()
getPath in class java.io.Filepublic final ResourceFile getParentFile()
getParentFile in class java.io.Filepublic boolean exists()
exists in class java.io.Filepublic boolean equals(java.lang.Object obj)
equals in class java.io.Filepublic int hashCode()
hashCode in class java.io.File