类 ProtobufHttpMessageConverter.ProtobufJavaFormatSupport
java.lang.Object
cn.taketoday.http.converter.protobuf.ProtobufHttpMessageConverter.ProtobufJavaFormatSupport
static class ProtobufHttpMessageConverter.ProtobufJavaFormatSupport
extends Object
implements ProtobufHttpMessageConverter.ProtobufFormatSupport
ProtobufHttpMessageConverter.ProtobufFormatSupport implementation used when
com.googlecode.protobuf.format.FormatFactory is available.-
字段概要
字段修饰符和类型字段说明private final com.googlecode.protobuf.format.ProtobufFormatterprivate final com.googlecode.protobuf.format.ProtobufFormatterprivate final com.googlecode.protobuf.format.ProtobufFormatter -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidmerge(InputStream input, Charset charset, MediaType contentType, com.google.protobuf.ExtensionRegistry extensionRegistry, com.google.protobuf.Message.Builder builder) voidprint(com.google.protobuf.Message message, OutputStream output, MediaType contentType, Charset charset) booleansupportsWriteOnly(MediaType mediaType)
-
字段详细资料
-
jsonFormatter
private final com.googlecode.protobuf.format.ProtobufFormatter jsonFormatter -
xmlFormatter
private final com.googlecode.protobuf.format.ProtobufFormatter xmlFormatter -
htmlFormatter
private final com.googlecode.protobuf.format.ProtobufFormatter htmlFormatter
-
-
构造器详细资料
-
ProtobufJavaFormatSupport
public ProtobufJavaFormatSupport()
-
-
方法详细资料
-
supportedMediaTypes
-
supportsWriteOnly
-
merge
public void merge(InputStream input, Charset charset, MediaType contentType, com.google.protobuf.ExtensionRegistry extensionRegistry, com.google.protobuf.Message.Builder builder) throws IOException, HttpMessageConversionException -
print
public void print(com.google.protobuf.Message message, OutputStream output, MediaType contentType, Charset charset) throws IOException, HttpMessageConversionException
-