@GwtIncompatible(value="Currently not used in GWT version") public final class XtbMessageBundle extends Object implements MessageBundle
| Constructor and Description |
|---|
XtbMessageBundle(InputStream xtb,
String projectId)
Creates an instance and initializes it with the messages in an XTB file.
|
XtbMessageBundle(InputStream xtb,
String projectId,
boolean unused) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<JsMessage> |
getAllMessages()
Returns an iterable over the keys that this object has replacements for.
|
JsMessage |
getMessage(String id)
Gets a message replacement.
|
JsMessage.IdGenerator |
idGenerator()
Gets the message ID generator to use to compute message IDs for this
type of bundle.
|
public XtbMessageBundle(InputStream xtb, @Nullable String projectId, boolean unused)
public XtbMessageBundle(InputStream xtb, @Nullable String projectId)
xtb - the XTB file as a byte streamprojectId - the translation console project id (i.e. name)public JsMessage getMessage(String id)
MessageBundlegetMessage in interface MessageBundleid - the id of the message being replaced; the key is message ID
generated by JsMessage.IdGeneratorpublic JsMessage.IdGenerator idGenerator()
MessageBundleidGenerator in interface MessageBundlepublic Iterable<JsMessage> getAllMessages()
MessageBundlegetAllMessages in interface MessageBundleCopyright © 2009-2015 Google. All Rights Reserved.