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 final JarEntry | |
| private final JarCache. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public FileTime | creationTime()
Implements abstract org. Implements org.
|
| public String | |
| public boolean | |
| public boolean | |
| public FileTime | lastAccessTime()
Implements abstract org. Implements org.
|
| public FileTime | lastModifiedTime()
Implements abstract org. Implements org.
|
| public long | |
| public String[] | |
| public Channel | |
| public InputStream | openInputStream()
Implements org. Opens a new input stream to read the contents of a resource and returns it. |
| public <T> T | unwrap(Class<T> type)
Implements org. Unwrap the resource backend (replacement for |
| entry | back to summary |
|---|---|
| private final JarEntry entry | |
| index | back to summary |
|---|---|
| private final JarCache. | |
| JarFileResource | back to summary |
|---|---|
| pack-priv JarFileResource(String jarPath, boolean rootSlashPrefix, JarCache. | |
| creationTime | back to summary |
|---|---|
| public FileTime creationTime() Implements abstract org. Implements org. | |
| entryName | back to summary |
|---|---|
| public String entryName() Implements abstract org.
| |
| isDirectory | back to summary |
|---|---|
| public boolean isDirectory() Implements org.
| |
| isFile | back to summary |
|---|---|
| public boolean isFile() Implements org.
| |
| lastAccessTime | back to summary |
|---|---|
| public FileTime lastAccessTime() Implements abstract org. Implements org. | |
| lastModifiedTime | back to summary |
|---|---|
| public FileTime lastModifiedTime() Implements abstract org. Implements org. | |
| length | back to summary |
|---|---|
| public long length() Implements org.
| |
| list | back to summary |
|---|---|
| public String[] list() Implements org.
| |
| openChannel | back to summary |
|---|---|
| public Channel openChannel(int flags, int perm) throws IOException Implements org.
| |
| openInputStream | back to summary |
|---|---|
| public InputStream openInputStream() throws IOException Implements org. Doc from org. Opens a new input stream to read the contents of a resource and returns it. Note that implementations may be allocating native memory for the stream, so callers need to close this when they are done with it. users of this method should follow the pattern: close the stream where you open it.
| |
| unwrap | back to summary |
|---|---|
| public <T> T unwrap(Class<T> type) Implements org. Doc from org. Unwrap the resource backend (replacement for
| |