--resource-dir
jpackage parameter.
Resource has default name and public name. Default name is the name of a file
in jdk.jpackage.internal.resources package that provides the default
value of the resource.
Public name is a path relative to resource directory to a file with custom
value of the resource.
Use #setPublicName to set the public name.
If #setPublicName was not called, name of file passed in #saveToFile function
will be used as a public name.
Use #setExternal to set arbitrary file as a source of resource. If non-null
value was passed in #setExternal call that value will be used as a path to file
to copy in the destination file passed in #saveToFile function call.
| Modifier and Type | Class and Description |
|---|---|
| private static interface | |
| pack-priv static enum | |
| private static interface |
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private final String | |
| private final Function | |
| private Path | |
| private Path | |
| private Path | |
| private Path | |
| private Map | |
| private Map |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv OverridableResource | |
| pack-priv String | |
| pack-priv Path | |
| private OverridableResource. | |
| private String | |
| pack-priv Path | |
| pack-priv Path | |
| private void | |
| pack-priv OverridableResource. | |
| private void | |
| private Path | |
| pack-priv OverridableResource. | |
| pack-priv OverridableResource. | |
| pack-priv OverridableResource. | |
| pack-priv OverridableResource. | |
| private OverridableResource. | |
| pack-priv OverridableResource | |
| pack-priv OverridableResource | |
| pack-priv OverridableResource | |
| pack-priv OverridableResource | Returns: thisSet name of file to look for in resource dir to put in verbose log. |
| pack-priv OverridableResource | |
| pack-priv OverridableResource | |
| pack-priv OverridableResource | |
| pack-priv OverridableResource | |
| pack-priv OverridableResource | |
| pack-priv OverridableResource | |
| pack-priv OverridableResource | |
| private static Stream | |
| private static Path | |
| private boolean | |
| private boolean | |
| private boolean |
| category | back to summary |
|---|---|
| private String category | |
| defaultName | back to summary |
|---|---|
| private final String defaultName | |
| defaultResourceGetter | back to summary |
|---|---|
| private final Function<String, InputStream> defaultResourceGetter | |
| externalPath | back to summary |
|---|---|
| private Path externalPath | |
| logPublicName | back to summary |
|---|---|
| private Path logPublicName | |
| publicName | back to summary |
|---|---|
| private Path publicName | |
| resourceDir | back to summary |
|---|---|
| private Path resourceDir | |
| sources | back to summary |
|---|---|
| private Map<OverridableResource. | |
| substitutionData | back to summary |
|---|---|
| private Map<String, String> substitutionData | |
| OverridableResource | back to summary |
|---|---|
| pack-priv OverridableResource() | |
| OverridableResource | back to summary |
|---|---|
| pack-priv OverridableResource(String defaultName, Function<String, InputStream> defaultResourceGetter) | |
| OverridableResource | back to summary |
|---|---|
| pack-priv OverridableResource(String defaultName, Class<?> resourceLocator) | |
| addSubstitutionDataEntry | back to summary |
|---|---|
| pack-priv OverridableResource addSubstitutionDataEntry(String key, String value) | |
| getDefaultName | back to summary |
|---|---|
| pack-priv String getDefaultName() | |
| getExternalPath | back to summary |
|---|---|
| pack-priv Path getExternalPath() | |
| getHandler | back to summary |
|---|---|
| private OverridableResource. | |
| getPrintableCategory | back to summary |
|---|---|
| private String getPrintableCategory() | |
| getPublicName | back to summary |
|---|---|
| pack-priv Path getPublicName() | |
| getResourceDir | back to summary |
|---|---|
| pack-priv Path getResourceDir() | |
| noDefault | back to summary |
|---|---|
| private void noDefault(OverridableResource. | |
| probe | back to summary |
|---|---|
| pack-priv OverridableResource. | |
| processResourceStream | back to summary |
|---|---|
| private void processResourceStream(InputStream rawResource, OverridableResource. | |
| resourceName | back to summary |
|---|---|
| private Path resourceName(OverridableResource. | |
| saveInFolder | back to summary |
|---|---|
| pack-priv OverridableResource. | |
| saveToFile | back to summary |
|---|---|
| pack-priv OverridableResource. | |
| saveToFile | back to summary |
|---|---|
| pack-priv OverridableResource. | |
| saveToStream | back to summary |
|---|---|
| pack-priv OverridableResource. | |
| sendToConsumer | back to summary |
|---|---|
| private OverridableResource. | |
| setCategory | back to summary |
|---|---|
| pack-priv OverridableResource setCategory(String v) | |
| setExternal | back to summary |
|---|---|
| pack-priv OverridableResource setExternal(Path v) | |
| setExternal | back to summary |
|---|---|
| pack-priv OverridableResource setExternal(File v) | |
| setLogPublicName | back to summary |
|---|---|
| pack-priv OverridableResource setLogPublicName(Path v) Set name of file to look for in resource dir to put in verbose log.
| |
| setLogPublicName | back to summary |
|---|---|
| pack-priv OverridableResource setLogPublicName(String v) | |
| setPublicName | back to summary |
|---|---|
| pack-priv OverridableResource setPublicName(Path v) Set name of file to look for in resource dir.
| |
| setPublicName | back to summary |
|---|---|
| pack-priv OverridableResource setPublicName(String v) | |
| setResourceDir | back to summary |
|---|---|
| pack-priv OverridableResource setResourceDir(Path v) | |
| setResourceDir | back to summary |
|---|---|
| pack-priv OverridableResource setResourceDir(File v) | |
| setSourceOrder | back to summary |
|---|---|
| pack-priv OverridableResource setSourceOrder(OverridableResource. | |
| setSubstitutionData | back to summary |
|---|---|
| pack-priv OverridableResource setSubstitutionData(Map<String, String> v) | |
| substitute | back to summary |
|---|---|
| private static Stream | |
| toPath | back to summary |
|---|---|
| private static Path toPath(File v) | |
| useDefault | back to summary |
|---|---|
| private boolean useDefault(OverridableResource. | |
| useExternal | back to summary |
|---|---|
| private boolean useExternal(OverridableResource. | |
| useResourceDir | back to summary |
|---|---|
| private boolean useResourceDir(OverridableResource. | |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Path |
| consume | back to summary |
|---|---|
| public void consume(InputStream in) throws IOException | |
| publicName | back to summary |
|---|---|
| public Path publicName() | |
| Modifier and Type | Field and Description |
|---|---|
| public static final OverridableResource. | |
| public static final OverridableResource. | |
| public static final OverridableResource. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static OverridableResource. | |
| public static OverridableResource. |
| DefaultResource | back to summary |
|---|---|
| public static final OverridableResource. | |
| External | back to summary |
|---|---|
| public static final OverridableResource. | |
| ResourceDir | back to summary |
|---|---|
| public static final OverridableResource. | |
| Source | back to summary |
|---|---|
| private Source() | |
| valueOf | back to summary |
|---|---|
| public static OverridableResource. | |
| values | back to summary |
|---|---|
| public static OverridableResource. | |
| Modifier and Type | Method and Description |
|---|---|
| public boolean |
| apply | back to summary |
|---|---|
| public boolean apply(OverridableResource. | |