APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.internal.jimage

public final Enum PreviewMode

extends Enum<PreviewMode>
Class Inheritance
Imports
java.lang.reflect.InvocationTargetException

Specifies the preview mode used to open a jimage file via ImageReader.

Implementation Note

This class needs to maintain JDK 8 source compatibility. It is used internally in the JDK to implement jimage/jrtfs access, but also compiled and delivered as part of the jrtfs.jar to support access to the jimage file provided by the shipped JDK by tools running on JDK 8.

Field Summary

Modifier and TypeField and Description
public static final PreviewMode
DISABLED

Preview mode is disabled.

public static final PreviewMode
ENABLED

Preview mode is enabled.

public static final PreviewMode
FOR_RUNTIME

The preview mode of the current run-time, typically determined by the --enable-preview flag.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean
isPreviewModeEnabled()

Resolves whether preview mode should be enabled for an ImageReader.

public static PreviewMode
public static PreviewMode[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

DISABLEDback to summary
public static final PreviewMode DISABLED

Preview mode is disabled. No preview classes or resources will be available in this mode.

ENABLEDback to summary
public static final PreviewMode ENABLED

Preview mode is enabled. If preview classes or resources exist in the jimage file, they will be made available.

FOR_RUNTIMEback to summary
public static final PreviewMode FOR_RUNTIME

The preview mode of the current run-time, typically determined by the --enable-preview flag.

Constructor Detail

PreviewModeback to summary
private PreviewMode()

Method Detail

isPreviewModeEnabledback to summary
public boolean isPreviewModeEnabled()

Resolves whether preview mode should be enabled for an ImageReader.

valueOfback to summary
public static PreviewMode valueOf(String name)
valuesback to summary
public static PreviewMode[] values()