public abstract class JarResource extends Object implements FileResource
Modifier | Constructor and Description |
---|---|
protected |
JarResource(String jarPath) |
Modifier and Type | Method and Description |
---|---|
String |
absolutePath() |
boolean |
canRead() |
boolean |
canWrite() |
static JarResource |
create(String pathname) |
protected abstract String |
entryName() |
boolean |
exists() |
JRubyFile |
hackyGetJRubyFile() |
boolean |
isSymLink() |
jnr.posix.FileStat |
lstat(jnr.posix.POSIX posix) |
jnr.posix.FileStat |
stat(jnr.posix.POSIX posix) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isDirectory, isFile, lastModified, length, list
protected JarResource(String jarPath)
public static JarResource create(String pathname)
public String absolutePath()
absolutePath
in interface FileResource
public boolean exists()
exists
in interface FileResource
public boolean canRead()
canRead
in interface FileResource
public boolean canWrite()
canWrite
in interface FileResource
public boolean isSymLink()
isSymLink
in interface FileResource
public jnr.posix.FileStat stat(jnr.posix.POSIX posix)
stat
in interface FileResource
public jnr.posix.FileStat lstat(jnr.posix.POSIX posix)
lstat
in interface FileResource
public JRubyFile hackyGetJRubyFile()
hackyGetJRubyFile
in interface FileResource
protected abstract String entryName()
Copyright © 2001-2014 JRuby. All Rights Reserved.