addTextLang
Adds the language setting to a command buffer. Encodes the string specified by
to the language information specified by this API.
This API is an API to be called before calling
Syntax
public void addTextLang(int lang) throws EposException
Parameter
lang :
Specifies the target language.
Builder.LANG_EN(default)
Builder.LANG_JA
Exceptions
When processing fails, EposException is thrown with one of the following error values.
Error status
ERR_PARAM
ERR_MEMORY
ERR_FAILURE
Example
To set the language as English:
try {
Builder builder = new Builder("TM-T88V", Builder.MODEL_ANK);
builder.addTextLang(Builder.LANG_EN);
///Process///
} catch (EposException e) {
int errStatus = e.getErrorStatus();
}
addText
Set value
English(ANK)
Japanese
Invalid parameter was passed.
Could not allocate memory.
An unspecified error occurred.
Chapter 4 API Reference
addText (p.46)
(p.46).
Language
Description
according
4
47