public abstract class JarResource
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
JarResource(java.lang.String jarPath,
boolean rootSlashPrefix) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
absolutePath() |
boolean |
canExecute() |
java.lang.String |
canonicalPath() |
boolean |
canRead() |
boolean |
canWrite() |
static JarResource |
create(java.lang.String pathname) |
protected abstract java.lang.String |
entryName() |
int |
errno() |
boolean |
exists() |
JRubyFile |
hackyGetJRubyFile() |
java.io.InputStream |
inputStream()
Opens a new input stream to read the contents of a resource and returns it.
|
boolean |
isSymLink() |
jnr.posix.FileStat |
lstat() |
static boolean |
removeJarResource(java.lang.String jarPath) |
jnr.posix.FileStat |
stat() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isDirectory, isFile, lastModified, length, list, openChannel
protected JarResource(java.lang.String jarPath, boolean rootSlashPrefix)
public static JarResource create(java.lang.String pathname)
public static boolean removeJarResource(java.lang.String jarPath)
public java.lang.String absolutePath()
public java.lang.String canonicalPath()
public boolean exists()
public boolean canRead()
public boolean canWrite()
public boolean isSymLink()
public jnr.posix.FileStat stat()
public jnr.posix.FileStat lstat()
public JRubyFile hackyGetJRubyFile()
protected abstract java.lang.String entryName()
public boolean canExecute()
canExecute
in interface FileResource
public int errno()
errno
in interface FileResource
public java.io.InputStream inputStream() throws ResourceException
FileResource
inputStream
in interface FileResource
ResourceException
- is the file does not exists or if the resource is a directoryCopyright © 2001-2018 JRuby. All Rights Reserved.