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, waitisDirectory, isFile, lastModified, length, list, openChannelprotected 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 FileResourcepublic int errno()
errno in interface FileResourcepublic java.io.InputStream inputStream()
throws ResourceException
FileResourceinputStream in interface FileResourceResourceException - is the file does not exists or if the resource is a directoryCopyright © 2001-2018 JRuby. All Rights Reserved.