public class UserMarshaller extends Object implements MessageMarshaller<User>
MessageMarshaller.ProtoStreamReader, MessageMarshaller.ProtoStreamWriter
Constructor and Description |
---|
UserMarshaller() |
Modifier and Type | Method and Description |
---|---|
Class<? extends User> |
getJavaClass() |
String |
getTypeName()
Returns the full name of the message or enum type as declared in the protobuf file.
|
User |
readFrom(MessageMarshaller.ProtoStreamReader reader) |
void |
writeTo(MessageMarshaller.ProtoStreamWriter writer,
User user) |
public String getTypeName()
BaseMarshaller
getTypeName
in interface BaseMarshaller<User>
public Class<? extends User> getJavaClass()
getJavaClass
in interface BaseMarshaller<User>
public User readFrom(MessageMarshaller.ProtoStreamReader reader) throws IOException
readFrom
in interface MessageMarshaller<User>
IOException
public void writeTo(MessageMarshaller.ProtoStreamWriter writer, User user) throws IOException
writeTo
in interface MessageMarshaller<User>
IOException
Copyright © 2014 JBoss, a division of Red Hat. All rights reserved.