Jars do not necessarily have to contain entries for a directory. However, from ruby's point of view, if a jar contains entry /foo/bar, it already contains /foo directory. This resource permits just that.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| contents | back to summary |
|---|---|
| private final String[] contents | |
| path | back to summary |
|---|---|
| private final String path | |
| JarDirectoryResource | back to summary |
|---|---|
| pack-priv JarDirectoryResource(String jarPath, boolean rootSlashPrefix, String path, String[] contents) | |
| 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.
| |
| isRoot | back to summary |
|---|---|
| public boolean isRoot() | |
| lastAccessTime | back to summary |
|---|---|
| public FileTime lastAccessTime() Implements abstract org. Implements org. | |
| lastModified | back to summary |
|---|---|
| public long lastModified() Overrides 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(final int flags, int perm) throws ResourceException 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
| |