public class Pb2JsonUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Pb2JsonUtils.PbVersion |
| Constructor and Description |
|---|
Pb2JsonUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkPbVersion() |
static boolean |
isClassExist(String className) |
static void |
json2Pb(CharSequence input,
com.google.protobuf.Message.Builder builder) |
static String |
pb2json(com.google.protobuf.Message message,
String encoding) |
public static void checkPbVersion()
public static void json2Pb(CharSequence input, com.google.protobuf.Message.Builder builder) throws com.googlecode.protobuf.format.JsonFormat.ParseException
com.googlecode.protobuf.format.JsonFormat.ParseExceptionpublic static String pb2json(com.google.protobuf.Message message, String encoding) throws IOException
IOExceptionpublic static boolean isClassExist(String className)
Copyright © 2020 Baidu, Inc.. All rights reserved.