public class LocaleToLanguageTagCodec extends Object implements ThriftCodec<Locale>
| Constructor and Description |
|---|
LocaleToLanguageTagCodec(ThriftCatalog thriftCatalog) |
| Modifier and Type | Method and Description |
|---|---|
ThriftType |
getType() |
static String |
localeToString(Locale locale) |
Locale |
read(TProtocolReader protocol) |
static Locale |
stringToLocale(String locale) |
void |
write(Locale locale,
TProtocolWriter protocol) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisNull@Inject public LocaleToLanguageTagCodec(ThriftCatalog thriftCatalog)
public ThriftType getType()
getType in interface ThriftCodec<Locale>public Locale read(TProtocolReader protocol) throws Exception
read in interface ThriftCodec<Locale>Exceptionpublic void write(Locale locale, TProtocolWriter protocol) throws Exception
write in interface ThriftCodec<Locale>Exception@FromThrift public static Locale stringToLocale(String locale)
Copyright © 2012–2021. All rights reserved.