|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.i18n.I18nUtil
public class I18nUtil
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_ENCODING
|
static java.util.Locale |
DEFAULT_LOCALE
|
static java.lang.String |
ISO_8859_1_ENCONDING
|
static java.lang.String |
UTF_8_ENCONDING
|
| Constructor Summary | |
|---|---|
I18nUtil()
|
|
| Method Summary | |
|---|---|
static boolean |
containsDirectDirectory(java.net.URL url,
java.lang.String directory)
Test if an url contains the given directory with no recurse seeking. |
static java.util.List<java.net.URL> |
getURLsFromDirectory(java.io.File repository,
java.lang.String pattern)
Retourne la liste des fichiers correspondant au pattern donne, aucun ordre ne doit être supposé sur les fichiers. |
static boolean |
isJar(java.lang.String name)
Verifie si le fichier est un fichier jar. |
static boolean |
isZip(java.lang.String name)
Verifie si le fichier est un fichier zip |
static java.util.Locale |
newLocale(java.lang.String str)
|
static java.util.Locale |
newLocale(java.lang.String language,
java.lang.String country)
|
static java.util.Locale[] |
parseLocales(java.lang.String str)
Parse a list of Locale seperated by comma. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ISO_8859_1_ENCONDING
public static final java.lang.String UTF_8_ENCONDING
public static final java.lang.String DEFAULT_ENCODING
public static final java.util.Locale DEFAULT_LOCALE
| Constructor Detail |
|---|
public I18nUtil()
| Method Detail |
|---|
public static java.util.Locale[] parseLocales(java.lang.String str)
throws java.lang.IllegalArgumentException
Locale seperated by comma.
Example : fr_FR,en_GB
str - the string representation of locale separated by comma
java.lang.IllegalArgumentException - ia a locale is not validpublic static java.util.Locale newLocale(java.lang.String str)
public static java.util.Locale newLocale(java.lang.String language,
java.lang.String country)
public static boolean containsDirectDirectory(java.net.URL url,
java.lang.String directory)
throws java.io.IOException
url - the url to seekdirectory - the directory to find
true if directory was found, false otherwise.
java.io.IOException - if any io pbpublic static boolean isJar(java.lang.String name)
name - nom du fichier a tester
public static boolean isZip(java.lang.String name)
name - nom du fichier a tester
public static java.util.List<java.net.URL> getURLsFromDirectory(java.io.File repository,
java.lang.String pattern)
repository - repertoire dans lequel on recherche les fichierspattern - le nom du fichier a extraire du fichier du repertoire doit
correspondre au pattern (repertoire + nom compris). si le
pattern est null, tous les fichiers trouvé sont retourné.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||