| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | |
| private static boolean | mayTranslate(String name, int off, int len)
Returns |
| public static Path | |
| public static String | |
| public static String | toResourceName(Path dir, Path file)
Returns a resource name corresponding to the relative file path
between |
| private static Path |
| Resources | back to summary |
|---|---|
| private Resources() | |
| canEncapsulate | back to summary |
|---|---|
| public static boolean canEncapsulate(String name) Return true if a resource can be encapsulated. Resource with names ending in ".class" or "/" cannot be encapsulated. Resource names that map to a legal package name can be encapsulated. | |
| mayTranslate | back to summary |
|---|---|
| private static boolean mayTranslate(String name, int off, int len) Returns | |
| toFilePath | back to summary |
|---|---|
| public static Path toFilePath(Path dir, String name) throws IOException Returns a file path to a resource in a file tree. If the resource
name has a trailing "/" then the file path will locate a directory.
Returns | |
| toPackageName | back to summary |
|---|---|
| public static String toPackageName(String name) Derive a package name for a resource. The package name returned by this method may not be a legal package name. This method returns null if the resource name ends with a "/" (a directory) or the resource name does not contain a "/". | |
| toResourceName | back to summary |
|---|---|
| public static String toResourceName(Path dir, Path file) Returns a resource name corresponding to the relative file path
between | |
| toSafeFilePath | back to summary |
|---|---|
| private static Path toSafeFilePath(FileSystem fs, String name) Map a resource name to a "safe" file path. Returns | |