Class ICUData
java.lang.Object
org.graalvm.shadowed.com.ibm.icu.impl.ICUData
Provides access to ICU data files as InputStreams. Implements security checking.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe base name of ICU data to be used with ClassLoader.getResourceAsStream(), ICUResourceBundle.getBundleInstance() etc.static final StringThe base name of rbbi data to be used with getBundleInstance APIstatic final StringThe base name of rbbi data to be used with getData APIstatic final StringThe data path to be used with Class.getResourceAsStream().static final StringThe base name of collation data to be used with getBundleInstance APIstatic final Stringstatic final Stringstatic final StringThe base name of rbnf data to be used with getBundleInstance APIstatic final Stringstatic final StringThe base name of transliterator data to be used with getBundleInstance APIstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic InputStreamgetRequiredStream(Class<?> root, String resourceName) Convenience method that calls getStream(root, resourceName, true).static InputStreamgetRequiredStream(ClassLoader loader, String resourceName) static InputStreamgetRequiredStream(String resourceName) Convenience method that calls getStream(ICUData.class, resourceName, true).static InputStreamConvenience override that calls getStream(root, resourceName, false); Returns null if the resource could not be found.static InputStreamgetStream(ClassLoader loader, String resourceName) static InputStreamConvenience override that calls getStream(ICUData.class, resourceName, false); Returns null if the resource could not be found.
-
Field Details
-
ICU_BUNDLE
The data path to be used with Class.getResourceAsStream().- See Also:
-
ICU_BASE_NAME
The base name of ICU data to be used with ClassLoader.getResourceAsStream(), ICUResourceBundle.getBundleInstance() etc.- See Also:
-
ICU_COLLATION_BASE_NAME
The base name of collation data to be used with getBundleInstance API- See Also:
-
ICU_BRKITR_NAME
The base name of rbbi data to be used with getData API- See Also:
-
ICU_BRKITR_BASE_NAME
The base name of rbbi data to be used with getBundleInstance API- See Also:
-
ICU_RBNF_BASE_NAME
The base name of rbnf data to be used with getBundleInstance API- See Also:
-
ICU_TRANSLIT_BASE_NAME
The base name of transliterator data to be used with getBundleInstance API- See Also:
-
ICU_LANG_BASE_NAME
- See Also:
-
ICU_CURR_BASE_NAME
- See Also:
-
ICU_REGION_BASE_NAME
- See Also:
-
ICU_ZONE_BASE_NAME
- See Also:
-
ICU_UNIT_BASE_NAME
- See Also:
-
-
Constructor Details
-
ICUData
public ICUData()
-
-
Method Details
-
exists
-
getStream
-
getRequiredStream
-
getStream
Convenience override that calls getStream(ICUData.class, resourceName, false); Returns null if the resource could not be found. -
getRequiredStream
Convenience method that calls getStream(ICUData.class, resourceName, true).- Throws:
MissingResourceException- if the resource could not be found
-
getStream
Convenience override that calls getStream(root, resourceName, false); Returns null if the resource could not be found. -
getRequiredStream
Convenience method that calls getStream(root, resourceName, true).- Throws:
MissingResourceException- if the resource could not be found
-