|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.itextpdf.text.error_messages.MessageLocalization
public final class MessageLocalization
Localizes error messages. The messages are located in the package com.itextpdf.text.error_messages in the form language_country.lng. The internal file encoding is UTF-8 without any escape chars, it's not a normal property file. See en.lng for more information on the internal format.
Method Summary | |
---|---|
static String |
getComposedMessage(String key,
int p1)
Get a message with one parameter as an primitive int. |
static String |
getComposedMessage(String key,
Object... param)
Get a message with param.length parameters or none if param is null. |
static String |
getMessage(String key)
Get a message without parameters. |
static boolean |
setLanguage(String language,
String country)
Sets the language to be used globally for the error messages. |
static void |
setMessages(Reader r)
Sets the error messages directly from a Reader. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String getMessage(String key)
key
- the key to the message
public static String getComposedMessage(String key, int p1)
key
- the key to the messagep1
- the parameter
public static String getComposedMessage(String key, Object... param)
key
- the key to the messageparam
- array of parameter objects, (toString is used to add it to the message)
public static boolean setLanguage(String language, String country) throws IOException
language
- the languagecountry
- the country
IOException
- on errorpublic static void setMessages(Reader r) throws IOException
r
- the Reader
IOException
- on error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |