{
u4 magic;
u2 major_version;
u2 minor_version;
u4 resource_count;
u4 table_length;
u4 location_attributes_size;
u4 strings_size;
u4 redirect[table_length];
u4 offsets[table_length];
u1 location_attributes[location_attributes_size];
u1 strings[strings_size];
u1 content[if !EOF];
}
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final byte[] | |
| private final Map | |
| private final boolean | |
| private static final String | |
| private final ImagePluginStack | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static ResourcePool | addDiffResourcesFiles(Set<String> modules, Map<String, List<ResourceDiff>> perModDiffs, ResourcePool resultResources, BasicImageWriter writer)
|
| private static ResourcePool | Returns: A resource pool with meta-data files added.The resource pool to add files to. resultResources, Map<String, List<String>> The per module mapping for which to create the meta-data files
for. nonClassResEntries, BasicImageWriter The image writer. writer)Support for creating runtimes that can be used for linking from the run-time image. |
| private static ResourcePool | Returns: An amended resource pool which includes meta-data files.The original resources which serve as the basis for generating
the meta-data files. resultResources, BasicImageWriter The image writer. writer)Support for creating runtimes that can be used for linking from the run-time image. |
| private static ResourcePool | Returns: The resource pool with the difference file resources added to theresultContentThe resource pool view of packaged modules jmodContent, ResourcePool The optimized result generated from the jmodContent
input by applying the plugin stack. resultContent, BasicImageWriter The image writer. writer)Support for creating a runtime suitable for linking from the run-time image. |
| public static ExecutableImage | Returns: The executable image.The set of input archives archives, ByteOrder The desired byte order of the result byteOrder, ImagePluginStack The plugin stack to apply to the input plugins, boolean if a runtime suitable for linking from the
run-time image should get created. generateRuntimeImage)Create an executable image based on a set of input archives and a given plugin stack for a given byte order. |
| private static ResourcePoolManager | |
| private static ResourcePoolManager | createPoolManager(Set<Archive> archives, Map<String, List<Archive.
|
| private static ResourcePoolManager | Returns: An appendable ResourcePoolManager.The existing resources to initially add. resultResources, BasicImageWriter The basic image writer. writer)Creates a ResourcePoolManager from existing resources so that more resources can be appended. |
| private static ResourcePool | Returns: A pool of the actual result resources.The content that needs to get added to the resulting
lib/modules (jimage) file. allContent, BasicImageWriter The writer for the jimage file. writer, ImagePluginStack The stack of all plugins to apply. pluginSupport, DataOutputStream The output stream to write the jimage to. out, boolean if a runtime suitable for linking from the
run-time image should get created. generateRuntimeImage)Create a jimage based on content of the given ResourcePoolManager, optionally creating a runtime that can be used for linking from the run-time image |
| private static ResourcePool | getResourcePool(ResourcePoolManager allContent, BasicImageWriter writer, ImagePluginStack pluginSupport, boolean generateRuntimeImage)
|
| private static Platform | |
| private static Map | |
| private void | |
| private static Map | Returns: A mapping with the module names as keys and the list of files not part of the modules image (jimage) as values.The resources from which the mapping gets generated resultResources)Support for creating runtimes that can be used for linking from the run-time image. |
| public static void | recreateJimage(Path jimageFile, Set<Archive> archives, ImagePluginStack pluginSupport, boolean generateRuntimeImage)
|
| private void |
| DIFF_PATH | back to summary |
|---|---|
| private static final String DIFF_PATH | |
| EMPTY_RESOURCE_BYTES | back to summary |
|---|---|
| private static final byte[] EMPTY_RESOURCE_BYTES | |
| entriesForModule | back to summary |
|---|---|
| private final Map<String, List<Archive. | |
| generateRuntimeImage | back to summary |
|---|---|
| private final boolean generateRuntimeImage | |
| JLINK_MOD_NAME | back to summary |
|---|---|
| private static final String JLINK_MOD_NAME | |
| plugins | back to summary |
|---|---|
| private final ImagePluginStack plugins | |
| RESPATH | back to summary |
|---|---|
| private static final String RESPATH | |
| ImageFileCreator | back to summary |
|---|---|
| private ImageFileCreator(ImagePluginStack plugins, boolean generateRuntimeImage) | |
| addDiffResourcesFiles | back to summary |
|---|---|
| private static ResourcePool addDiffResourcesFiles(Set<String> modules, Map<String, List<ResourceDiff>> perModDiffs, ResourcePool resultResources, BasicImageWriter writer) | |
| addModuleResourceEntries | back to summary |
|---|---|
| private static ResourcePool addModuleResourceEntries(ResourcePool resultResources, Map<String, List<String>> nonClassResEntries, BasicImageWriter writer) Support for creating runtimes that can be used for linking from the run-time image. Adds the given mapping of files as a meta-data file to the given resource pool.
| |
| addNonClassResourcesTrackFiles | back to summary |
|---|---|
| private static ResourcePool addNonClassResourcesTrackFiles(ResourcePool resultResources, BasicImageWriter writer) Support for creating runtimes that can be used for linking from the run-time image. Adds meta-data files for resources not in the lib/modules file of the JDK. That is, mapping files for which on-disk files belong to which module.
| |
| addResourceDiffFiles | back to summary |
|---|---|
| private static ResourcePool addResourceDiffFiles(ResourcePool jmodContent, ResourcePool resultContent, BasicImageWriter writer) Support for creating a runtime suitable for linking from the run-time
image.
Generates differences between the packaged modules "view" in
| |
| create | back to summary |
|---|---|
| public static ExecutableImage create(Set<Archive> archives, ByteOrder byteOrder, ImagePluginStack plugins, boolean generateRuntimeImage) throws IOException Create an executable image based on a set of input archives and a given
plugin stack for a given byte order. It optionally generates a runtime
that can be used for linking from the run-time image if
| |
| createBasicResourcePoolManager | back to summary |
|---|---|
| private static ResourcePoolManager createBasicResourcePoolManager(ByteOrder byteOrder, BasicImageWriter writer) | |
| createPoolManager | back to summary |
|---|---|
| private static ResourcePoolManager createPoolManager(Set<Archive> archives, Map<String, List<Archive. | |
| createPoolManager | back to summary |
|---|---|
| private static ResourcePoolManager createPoolManager(ResourcePool resultResources, BasicImageWriter writer) Creates a ResourcePoolManager from existing resources so that more resources can be appended.
| |
| generateJImage | back to summary |
|---|---|
| private static ResourcePool generateJImage(ResourcePoolManager allContent, BasicImageWriter writer, ImagePluginStack pluginSupport, DataOutputStream out, boolean generateRuntimeImage) throws IOException Create a jimage based on content of the given ResourcePoolManager, optionally creating a runtime that can be used for linking from the run-time image
| |
| getResourcePool | back to summary |
|---|---|
| private static ResourcePool getResourcePool(ResourcePoolManager allContent, BasicImageWriter writer, ImagePluginStack pluginSupport, boolean generateRuntimeImage) throws IOException | |
| getTargetPlatform | back to summary |
|---|---|
| private static Platform getTargetPlatform(ResourcePool in) | |
| preparePerModuleDiffs | back to summary |
|---|---|
| private static Map | |
| readAllEntries | back to summary |
|---|---|
| private void readAllEntries(Set<Archive> archives) | |
| recordAndFilterEntries | back to summary |
|---|---|
| private static Map Support for creating runtimes that can be used for linking from the run-time image. Generates a per module mapping of files not part of the modules image (jimage). This mapping is needed so as to know which files of the installed JDK belong to which module.
| |
| recreateJimage | back to summary |
|---|---|
| public static void recreateJimage(Path jimageFile, Set<Archive> archives, ImagePluginStack pluginSupport, boolean generateRuntimeImage) throws IOException | |
| writeImage | back to summary |
|---|---|
| private void writeImage(Set<Archive> archives, ByteOrder byteOrder) throws IOException | |