A file packaged within a module. A Resource may be
obtained by calling Module.resourceByPath(). For example:
Module mod = `module com.redhat.example`;
assert (exists resource
= mod.resourceByPath("com/redhat/example/file.txt"));
print(resource.textContent());
Module.resourceByPath()no type hierarchy
no supertypes hierarchy
no subtypes hierarchy
| Attributes | |
name | Source Codeshared default String nameThe name of the resource; usually the filename. |
size | Source Codeshared formal Integer sizeThe size of the resource, in bytes. |
string | Source Codeshared actual String stringA developer-friendly string representing the instance.
Concatenates the name of the concrete class of the
instance with the Refines Object.string |
uri | Source Codeshared formal String uriThe full path to the resource, expressed as a URI. For a resource packaged within a module archive, this includes both the path to the module archive file, and the path of the resource within the module archive. |
| Inherited Attributes |
Attributes inherited from: Object |