public final class SerializationContextImpl extends Object implements SerializationContext
| Constructor and Description |
|---|
SerializationContextImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canMarshall(Class clazz)
Checks if the message or enum type can be marshalled (a marshaller was defined for it).
|
boolean |
canMarshall(String descriptorFullName) |
com.google.protobuf.Descriptors.EnumDescriptor |
getEnumDescriptor(String fullName) |
<T> BaseMarshaller<T> |
getMarshaller(Class<T> clazz) |
<T> BaseMarshaller<T> |
getMarshaller(String descriptorFullName) |
com.google.protobuf.Descriptors.Descriptor |
getMessageDescriptor(String fullName) |
<T> void |
registerMarshaller(Class<? extends T> clazz,
BaseMarshaller<T> marshaller) |
void |
registerProtofile(com.google.protobuf.Descriptors.FileDescriptor fileDescriptor) |
void |
registerProtofile(InputStream in)
The input stream is not closed when finished.
|
void |
registerProtofile(String classpathResource) |
public void registerProtofile(InputStream in) throws IOException, com.google.protobuf.Descriptors.DescriptorValidationException
SerializationContextregisterProtofile in interface SerializationContextIOExceptioncom.google.protobuf.Descriptors.DescriptorValidationExceptionpublic void registerProtofile(String classpathResource) throws IOException, com.google.protobuf.Descriptors.DescriptorValidationException
registerProtofile in interface SerializationContextIOExceptioncom.google.protobuf.Descriptors.DescriptorValidationExceptionpublic void registerProtofile(com.google.protobuf.Descriptors.FileDescriptor fileDescriptor)
registerProtofile in interface SerializationContextpublic com.google.protobuf.Descriptors.Descriptor getMessageDescriptor(String fullName)
getMessageDescriptor in interface SerializationContextpublic com.google.protobuf.Descriptors.EnumDescriptor getEnumDescriptor(String fullName)
getEnumDescriptor in interface SerializationContextpublic <T> void registerMarshaller(Class<? extends T> clazz, BaseMarshaller<T> marshaller)
registerMarshaller in interface SerializationContextpublic boolean canMarshall(Class clazz)
SerializationContextcanMarshall in interface SerializationContextpublic boolean canMarshall(String descriptorFullName)
canMarshall in interface SerializationContextpublic <T> BaseMarshaller<T> getMarshaller(String descriptorFullName)
getMarshaller in interface SerializationContextpublic <T> BaseMarshaller<T> getMarshaller(Class<T> clazz)
getMarshaller in interface SerializationContextCopyright © 2016 JBoss, a division of Red Hat. All rights reserved.