| Modifier and Type | Class and Description |
|---|---|
| public static class | ResourcePoolManager.
A resource that has been compressed. |
| pack-priv class | |
| public class | |
| pack-priv static class | |
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final ResourcePoolModuleView | |
| private final ByteOrder | |
| private final ResourcePoolBuilder | |
| private final ResourcePool | |
| private final Map | |
| private final StringTable |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public ByteOrder | |
| public boolean | Returns: The module data or null if not found.The module data to check existence for. data)Check if the ResourcePool contains the given ResourcePoolEntry. |
| public Stream | Returns: The stream of ResourcePoolModuleEntries.Get all ResourcePoolEntry contained in this ResourcePool instance. |
| public int | Returns: the entry count.Return the number of ResourcePoolEntry count in this ResourcePool. |
| public Optional | |
| public Optional | Returns: A ResourcePoolEntry instance or null if the data is not foundA data path path, ResourcePoolEntry A context of the search context)Get the ResourcePoolEntry for the passed path restricted to supplied context. |
| public Optional | Returns: the module of matching name, if foundThe module name name)Retrieves the module for the provided name. |
| public StringTable | |
| public boolean | Returns: True, no content, false otherwise.Check if the ResourcePool contains some content at all. |
| public int | Returns: the module count.Return the number of ResourcePoolModule count in this ResourcePool. |
| public Stream | |
| public ResourcePoolModuleView | |
| public static ResourcePoolManager. | newCompressedResource(ResourcePoolEntry original, ByteBuffer compressed, String plugin, StringTable strings, ByteOrder order)
|
| pack-priv static ModuleInfo. | |
| public ResourcePool | |
| public ResourcePoolBuilder |
| modules | back to summary |
|---|---|
| private final Map<String, ResourcePoolModule> modules | |
| moduleViewImpl | back to summary |
|---|---|
| private final ResourcePoolModuleView moduleViewImpl | |
| order | back to summary |
|---|---|
| private final ByteOrder order | |
| poolBuilderImpl | back to summary |
|---|---|
| private final ResourcePoolBuilder poolBuilderImpl | |
| poolImpl | back to summary |
|---|---|
| private final ResourcePool poolImpl | |
| resources | back to summary |
|---|---|
| private final Map<String, ResourcePoolEntry> resources | |
| table | back to summary |
|---|---|
| private final StringTable table | |
| ResourcePoolManager | back to summary |
|---|---|
| public ResourcePoolManager() | |
| ResourcePoolManager | back to summary |
|---|---|
| public ResourcePoolManager(ByteOrder order) | |
| ResourcePoolManager | back to summary |
|---|---|
| public ResourcePoolManager(ByteOrder order, StringTable table) | |
| add | back to summary |
|---|---|
| public void add(ResourcePoolEntry data) Add a ResourcePoolEntry.
| |
| byteOrder | back to summary |
|---|---|
| public ByteOrder byteOrder() The ByteOrder currently in use when generating the jimage file.
| |
| contains | back to summary |
|---|---|
| public boolean contains(ResourcePoolEntry data) Check if the ResourcePool contains the given ResourcePoolEntry.
| |
| entries | back to summary |
|---|---|
| public Stream Get all ResourcePoolEntry contained in this ResourcePool instance.
| |
| entryCount | back to summary |
|---|---|
| public int entryCount() Return the number of ResourcePoolEntry count in this ResourcePool.
| |
| findEntry | back to summary |
|---|---|
| public Optional Get the ResourcePoolEntry for the passed path.
| |
| findEntryInContext | back to summary |
|---|---|
| public Optional Get the ResourcePoolEntry for the passed path restricted to supplied context.
| |
| findModule | back to summary |
|---|---|
| public Optional Retrieves the module for the provided name.
| |
| getStringTable | back to summary |
|---|---|
| public StringTable getStringTable() | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Check if the ResourcePool contains some content at all.
| |
| moduleCount | back to summary |
|---|---|
| public int moduleCount() Return the number of ResourcePoolModule count in this ResourcePool.
| |
| modules | back to summary |
|---|---|
| public Stream The stream of modules contained in this ResourcePool.
| |
| moduleView | back to summary |
|---|---|
| public ResourcePoolModuleView moduleView() | |
| newCompressedResource | back to summary |
|---|---|
| public static ResourcePoolManager. | |
| readModuleAttributes | back to summary |
|---|---|
| pack-priv static ModuleInfo. | |
| resourcePool | back to summary |
|---|---|
| public ResourcePool resourcePool() | |
| resourcePoolBuilder | back to summary |
|---|---|
| public ResourcePoolBuilder resourcePoolBuilder() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object other)
Overrides jdk. Indicates whether some other object is "equal to" this one. |
| public long | |
| public int | hashCode()
Overrides jdk. Returns a hash code value for this object. |
| uncompressed_size | back to summary |
|---|---|
| pack-priv final long uncompressed_size | |
| CompressedModuleData | back to summary |
|---|---|
| private CompressedModuleData(String module, String path, byte[] content, long uncompressed_size) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides jdk. 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.
| |
| getUncompressedSize | back to summary |
|---|---|
| public long getUncompressedSize() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides jdk. 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
| |
| Modifier and Type | Field and Description |
|---|---|
| private boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(ResourcePoolEntry data)
Implements jdk. Add a ResourcePoolEntry. |
| public ResourcePool | build()
Implements jdk. Done with adding resource entries. |
| built | back to summary |
|---|---|
| private boolean built | |
| ResourcePoolBuilderImpl | back to summary |
|---|---|
| pack-priv ResourcePoolBuilderImpl() | |
| add | back to summary |
|---|---|
| public void add(ResourcePoolEntry data) Implements jdk. Doc from jdk. Add a ResourcePoolEntry.
| |
| build | back to summary |
|---|---|
| public ResourcePool build() Implements jdk. Doc from jdk. Done with adding resource entries. Construct a ResourcePool with the added resource entries.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ByteOrder | byteOrder()
Implements jdk. The ByteOrder currently in use when generating the jimage file. |
| public boolean | contains(ResourcePoolEntry data)
Implements jdk. Check if the ResourcePool contains the given ResourcePoolEntry. |
| public Stream | entries()
Implements jdk. Get all ResourcePoolEntry contained in this ResourcePool instance. |
| public int | entryCount()
Implements jdk. Return the number of ResourcePoolEntry count in this ResourcePool. |
| public Optional | findEntry(String path)
Implements jdk. Get the ResourcePoolEntry for the passed path. |
| public Optional | findEntryInContext(String path, ResourcePoolEntry context)
Implements jdk. Get the ModuleEntry for the passed path restricted to supplied context. |
| public StringTable | |
| public boolean | isEmpty()
Implements jdk. Check if the ResourcePool contains some content at all. |
| public ResourcePoolModuleView | moduleView()
Implements jdk. Return the module view of this resource pool. |
| ResourcePoolImpl | back to summary |
|---|---|
| public ResourcePoolImpl() | |
| byteOrder | back to summary |
|---|---|
| public ByteOrder byteOrder() Implements jdk. Doc from jdk. The ByteOrder currently in use when generating the jimage file.
| |
| contains | back to summary |
|---|---|
| public boolean contains(ResourcePoolEntry data) Implements jdk. Doc from jdk. Check if the ResourcePool contains the given ResourcePoolEntry.
| |
| entries | back to summary |
|---|---|
| public Stream Implements jdk. Doc from jdk. Get all ResourcePoolEntry contained in this ResourcePool instance.
| |
| entryCount | back to summary |
|---|---|
| public int entryCount() Implements jdk. Doc from jdk. Return the number of ResourcePoolEntry count in this ResourcePool.
| |
| findEntry | back to summary |
|---|---|
| public Optional Implements jdk. Doc from jdk. Get the ResourcePoolEntry for the passed path.
| |
| findEntryInContext | back to summary |
|---|---|
| public Optional Implements jdk. Doc from jdk. Get the ModuleEntry for the passed path restricted to supplied context.
| |
| getStringTable | back to summary |
|---|---|
| public StringTable getStringTable() | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements jdk. Doc from jdk. Check if the ResourcePool contains some content at all.
| |
| moduleView | back to summary |
|---|---|
| public ResourcePoolModuleView moduleView() Implements jdk. Doc from jdk. Return the module view of this resource pool.
| |
| Modifier and Type | Field and Description |
|---|---|
| private ModuleDescriptor | |
| pack-priv final Map | |
| pack-priv final String | |
| private static final String | |
| private ModuleTarget |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public ModuleDescriptor | descriptor()
Implements jdk. The module descriptor of this module. |
| public Stream | entries()
Implements jdk. Retrieves the stream of ResourcePoolEntry. |
| public int | entryCount()
Implements jdk. Return the number of ResourcePoolEntry count in this ResourcePoolModule. |
| public Optional | findEntry(String path)
Implements jdk. Retrieves a ResourcePoolEntry from the given path (e.g: /mymodule/com.foo.bar/MyClass.class) |
| private static Optional | Returns: the inferred package name, orempty
if no name could be inferred.Returns a valid non-empty package name, inferred from a resource pool entry's path. |
| private void | |
| public String | |
| public Set | packages()
Implements jdk. Retrieves all the packages located in this module. |
| public String | targetPlatform()
Implements jdk. The target platform |
| public String |
| descriptor | back to summary |
|---|---|
| private ModuleDescriptor descriptor | |
| moduleContent | back to summary |
|---|---|
| pack-priv final Map<String, ResourcePoolEntry> moduleContent | |
| name | back to summary |
|---|---|
| pack-priv final String name | |
| PREVIEW_PREFIX | back to summary |
|---|---|
| private static final String PREVIEW_PREFIX | |
| target | back to summary |
|---|---|
| private ModuleTarget target | |
| ResourcePoolModuleImpl | back to summary |
|---|---|
| private ResourcePoolModuleImpl(String name) | |
| descriptor | back to summary |
|---|---|
| public ModuleDescriptor descriptor() Implements jdk. Doc from jdk. The module descriptor of this module.
| |
| entries | back to summary |
|---|---|
| public Stream Implements jdk. Doc from jdk. Retrieves the stream of ResourcePoolEntry.
| |
| entryCount | back to summary |
|---|---|
| public int entryCount() Implements jdk. Doc from jdk. Return the number of ResourcePoolEntry count in this ResourcePoolModule.
| |
| findEntry | back to summary |
|---|---|
| public Optional Implements jdk. Doc from jdk. Retrieves a ResourcePoolEntry from the given path (e.g: /mymodule/com.foo.bar/MyClass.class)
| |
| inferPackageName | back to summary |
|---|---|
| private static Optional Returns a valid non-empty package name, inferred from a resource pool entry's path. If the resource pool entry is for a preview resource (i.e. with
path | |
| initModuleAttributes | back to summary |
|---|---|
| private void initModuleAttributes() | |
| name | back to summary |
|---|---|
| public String name() Implements jdk. Doc from jdk. The module name.
| |
| packages | back to summary |
|---|---|
| public Set Implements jdk. Doc from jdk. Retrieves all the packages located in this module.
| |
| targetPlatform | back to summary |
|---|---|
| public String targetPlatform() Implements jdk. Doc from jdk. The target platform
| |
| 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-
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Optional | findModule(String name)
Implements jdk. Find the module, if any, of the given name. |
| public int | moduleCount()
Implements jdk. Return the number of ResourcePoolModule count in this ResourcePool. |
| public Stream | modules()
Implements jdk. The stream of modules contained in this ResourcePool. |
| ResourcePoolModuleViewImpl | back to summary |
|---|---|
| pack-priv ResourcePoolModuleViewImpl() | |
| findModule | back to summary |
|---|---|
| public Optional Implements jdk. Doc from jdk. Find the module, if any, of the given name.
| |
| moduleCount | back to summary |
|---|---|
| public int moduleCount() Implements jdk. Doc from jdk. Return the number of ResourcePoolModule count in this ResourcePool.
| |
| modules | back to summary |
|---|---|
| public Stream Implements jdk. Doc from jdk. The stream of modules contained in this ResourcePool.
| |