static class ProtobufHttpMessageConverter.ProtobufJavaUtilSupport extends java.lang.Object implements ProtobufHttpMessageConverter.ProtobufFormatSupport
Modifier and Type | Field and Description |
---|---|
private JsonFormat.Parser |
parser |
private JsonFormat.Printer |
printer |
Constructor and Description |
---|
ProtobufJavaUtilSupport(JsonFormat.Parser parser,
JsonFormat.Printer printer) |
Modifier and Type | Method and Description |
---|---|
void |
merge(java.io.InputStream input,
java.nio.charset.Charset charset,
MediaType contentType,
ExtensionRegistry extensionRegistry,
Message.Builder builder) |
void |
print(Message message,
java.io.OutputStream output,
MediaType contentType,
java.nio.charset.Charset charset) |
MediaType[] |
supportedMediaTypes() |
boolean |
supportsWriteOnly(MediaType mediaType) |
private final JsonFormat.Parser parser
private final JsonFormat.Printer printer
public MediaType[] supportedMediaTypes()
supportedMediaTypes
in interface ProtobufHttpMessageConverter.ProtobufFormatSupport
public boolean supportsWriteOnly(@Nullable MediaType mediaType)
supportsWriteOnly
in interface ProtobufHttpMessageConverter.ProtobufFormatSupport
public void merge(java.io.InputStream input, java.nio.charset.Charset charset, MediaType contentType, ExtensionRegistry extensionRegistry, Message.Builder builder) throws java.io.IOException
merge
in interface ProtobufHttpMessageConverter.ProtobufFormatSupport
java.io.IOException
public void print(Message message, java.io.OutputStream output, MediaType contentType, java.nio.charset.Charset charset) throws java.io.IOException
print
in interface ProtobufHttpMessageConverter.ProtobufFormatSupport
java.io.IOException