| Modifier and Type | Field and Description |
|---|---|
| private final ClassLoader | |
| public static final String | |
| private final String[] | |
| private final String | |
| public static final String | |
| private final String | |
| public static final String | |
| private final URL |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| private static boolean | addDirectoriesFromClassloader(ClassLoader cl, Set<String> list, String pathname, boolean isDirectory)
|
| private static boolean | |
| public boolean | |
| public String | |
| public boolean | |
| public boolean | |
| private static void | |
| public static FileResource | |
| public static FileResource | |
| private static FileResource | |
| public FileTime | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public boolean | |
| public static URL | |
| public int | |
| public boolean | |
| public boolean | |
| public boolean | |
| public FileTime | |
| public long | |
| public FileTime | |
| public long | |
| public String[] | |
| private static String[] | |
| private static String[] | |
| private static String[] | |
| public FileStat | |
| public Channel | |
| public InputStream | openInputStream()
Implements org. Opens a new input stream to read the contents of a resource and returns it. |
| public String | |
| public FileStat | |
| public String | |
| public <T> T | unwrap(Class<T> type)
Implements org. Unwrap the resource backend (replacement for |
| cl | back to summary |
|---|---|
| private final ClassLoader cl | |
| CLASSLOADER | back to summary |
|---|---|
| public static final String CLASSLOADER | |
| list | back to summary |
|---|---|
| private final String[] list | |
| pathname | back to summary |
|---|---|
| private final String pathname | |
| URI | back to summary |
|---|---|
| public static final String URI | |
| uri | back to summary |
|---|---|
| private final String uri | |
| URI_CLASSLOADER | back to summary |
|---|---|
| public static final String URI_CLASSLOADER | |
| url | back to summary |
|---|---|
| private final URL url | |
| URLResource | back to summary |
|---|---|
| pack-priv URLResource(String uri, URL url, String[] files) | |
| URLResource | back to summary |
|---|---|
| pack-priv URLResource(String uri, ClassLoader cl, String pathname, String[] files) | |
| URLResource | back to summary |
|---|---|
| private URLResource(String uri, URL url, ClassLoader cl, String pathname, String[] files) | |
| absolutePath | back to summary |
|---|---|
| public String absolutePath() Implements org.
| |
| addDirectoriesFromClassloader | back to summary |
|---|---|
| private static boolean addDirectoriesFromClassloader(ClassLoader cl, Set<String> list, String pathname, boolean isDirectory) throws IOException | |
| addDirectoryEntries | back to summary |
|---|---|
| private static boolean addDirectoryEntries(Set<String> entries, URL url, boolean isDirectory) | |
| canExecute | back to summary |
|---|---|
| public boolean canExecute() Implements org.
| |
| canonicalPath | back to summary |
|---|---|
| public String canonicalPath() Implements org.
| |
| canRead | back to summary |
|---|---|
| public boolean canRead() Implements org.
| |
| canWrite | back to summary |
|---|---|
| public boolean canWrite() Implements org.
| |
| close | back to summary |
|---|---|
| private static void close(final Closeable resource) | |
| create | back to summary |
|---|---|
| public static FileResource create(Ruby runtime, String pathname, boolean asFile) | |
| createClassloaderURI | back to summary |
|---|---|
| public static FileResource createClassloaderURI(Ruby runtime, String pathname, boolean asFile) | |
| createRegularURI | back to summary |
|---|---|
| private static FileResource createRegularURI(String pathname, boolean asFile) | |
| creationTime | back to summary |
|---|---|
| public FileTime creationTime() Implements org. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| errno | back to summary |
|---|---|
| public int errno() Implements org.
| |
| exists | back to summary |
|---|---|
| public boolean exists() Implements org.
| |
| getResourceURL | back to summary |
|---|---|
| public static URL getResourceURL(Ruby runtime, String location) | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isDirectory | back to summary |
|---|---|
| public boolean isDirectory() Implements org.
| |
| isFile | back to summary |
|---|---|
| public boolean isFile() Implements org.
| |
| isSymLink | back to summary |
|---|---|
| public boolean isSymLink() Implements org.
| |
| lastAccessTime | back to summary |
|---|---|
| public FileTime lastAccessTime() Implements org. | |
| lastModified | back to summary |
|---|---|
| public long lastModified() Implements org.
| |
| lastModifiedTime | back to summary |
|---|---|
| public FileTime lastModifiedTime() Implements org. | |
| length | back to summary |
|---|---|
| public long length() Implements org.
| |
| list | back to summary |
|---|---|
| public String[] list() Implements org.
| |
| listClassLoaderFiles | back to summary |
|---|---|
| private static String[] listClassLoaderFiles(ClassLoader classloader, String pathname) | |
| listFiles | back to summary |
|---|---|
| private static String[] listFiles(String pathname) | |
| listFilesFromInputStream | back to summary |
|---|---|
| private static String[] listFilesFromInputStream(InputStream is) | |
| lstat | back to summary |
|---|---|
| public FileStat lstat() 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.
| |
| path | back to summary |
|---|---|
| public String path() Implements org.
| |
| stat | back to summary |
|---|---|
| public FileStat stat() Implements org.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| unwrap | back to summary |
|---|---|
| public <T> T unwrap(Class<T> type) throws UnsupportedOperationException Implements org. Doc from org. Unwrap the resource backend (replacement for
| |