|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 java.lang.String |
getComposedMessage(java.lang.String key,
int p1)
Get a message with one parameter as an primitive int. |
static java.lang.String |
getComposedMessage(java.lang.String key,
java.lang.Object... param)
Get a message with param.length parameters or none if param is null. |
static java.lang.String |
getMessage(java.lang.String key)
Get a message without parameters. |
static boolean |
setLanguage(java.lang.String language,
java.lang.String country)
Sets the language to be used globally for the error messages. |
static void |
setMessages(java.io.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 java.lang.String getMessage(java.lang.String key)
key - the key to the message
public static java.lang.String getComposedMessage(java.lang.String key,
int p1)
key - the key to the messagep1 - the parameter
public static java.lang.String getComposedMessage(java.lang.String key,
java.lang.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(java.lang.String language,
java.lang.String country)
throws java.io.IOException
language - the languagecountry - the country
java.io.IOException - on error
public static void setMessages(java.io.Reader r)
throws java.io.IOException
r - the Reader
java.io.IOException - on error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||