class JarFileResource extends JarResource
Note: while directories can be contained within a jar, they're still represented by JarDirectoryResource, since Ruby expects a directory to exist as long as any files in that directory do, or Dir.glob would break.
| Modifier and Type | Field and Description |
|---|---|
private java.util.jar.JarEntry |
entry |
private JarCache.JarIndex |
index |
| Constructor and Description |
|---|
JarFileResource(java.lang.String jarPath,
boolean rootSlashPrefix,
JarCache.JarIndex index,
java.util.jar.JarEntry entry) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
entryName() |
boolean |
isDirectory() |
boolean |
isFile() |
long |
lastModified() |
long |
length() |
java.lang.String[] |
list() |
ChannelDescriptor |
openDescriptor(ModeFlags flags,
int perm) |
(package private) java.io.InputStream |
openInputStream() |
absolutePath, canonicalPath, canRead, canWrite, create, exists, hackyGetJRubyFile, isSymLink, lstat, statcanExecute, errno, inputStreamprivate final JarCache.JarIndex index
private final java.util.jar.JarEntry entry
JarFileResource(java.lang.String jarPath,
boolean rootSlashPrefix,
JarCache.JarIndex index,
java.util.jar.JarEntry entry)
public java.lang.String entryName()
entryName in class JarResourcepublic boolean isDirectory()
public boolean isFile()
public long length()
public long lastModified()
public java.lang.String[] list()
File.list()java.io.InputStream openInputStream()
openInputStream in class AbstractFileResourcepublic ChannelDescriptor openDescriptor(ModeFlags flags, int perm) throws ResourceException
ResourceException