Package de.xima.fc.form.export
Class AsposeLocale
- java.lang.Object
-
- de.xima.fc.form.export.AsposeLocale
-
public final class AsposeLocale extends Object
Helper class to convert between Java locales and Aspose locales.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description AsposeLocale()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
applyLocale(com.aspose.words.Document doc, int localeId)
Applies the given locale to the document by setting the locale ID on all nodes in the document.static OptionalInt
forLocale(Locale locale)
-
-
-
Method Detail
-
forLocale
public static OptionalInt forLocale(Locale locale)
- Parameters:
locale
- A locale to process.- Returns:
- The closest
EditingLanguage
for the given locale. Empty if none can be found.
-
applyLocale
public static void applyLocale(com.aspose.words.Document doc, int localeId)
Applies the given locale to the document by setting the locale ID on all nodes in the document.- Parameters:
doc
- Document to modify.localeId
- Locale ID to set.
-
-