public class I18n extends Object implements Serializable
| Constructor and Description |
|---|
I18n() |
| Modifier and Type | Method and Description |
|---|---|
String |
getMessageBundleAsJSon() |
void |
loadMessageBundles() |
static String |
slurp(InputStream is,
int bufferSize)
copied from http://stackoverflow.com/questions/309424/read-convert-an-inputstream-to-a-string
|
String |
translate(String english) |
@PostConstruct public void loadMessageBundles()
public String getMessageBundleAsJSon()
public static String slurp(InputStream is, int bufferSize)
is - file to be readbufferSize - size of the buffer used to read the fileCopyright © 2015. All rights reserved.