public class TypedObjectMarshaller extends Object implements FieldMarshaller<Object>
| Constructor and Description |
|---|
TypedObjectMarshaller(ScalarMarshaller<Class<?>> typeValue) |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Object> |
getJavaClass()
Returns the type of object handled by this marshallable instance.
|
int |
getWireType()
Returns the wire type of the scalar first value written by this marshaller.
|
Object |
readFrom(ProtoStreamReader reader)
Reads an object from the specified reader.
|
void |
writeTo(ProtoStreamWriter writer,
Object value)
Writes the specified object to the specified writer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsizepublic TypedObjectMarshaller(ScalarMarshaller<Class<?>> typeValue)
public Object readFrom(ProtoStreamReader reader) throws IOException
MarshallablereadFrom in interface Marshallable<Object>reader - a ProtoStream readerIOException - if the object could not be readpublic void writeTo(ProtoStreamWriter writer, Object value) throws IOException
MarshallablewriteTo in interface Marshallable<Object>writer - a ProtoStream writervalue - the object to be writtenIOException - if the object could not be writtenpublic Class<? extends Object> getJavaClass()
MarshallablegetJavaClass in interface Marshallable<Object>public int getWireType()
FieldMarshallergetWireType in interface FieldMarshaller<Object>Copyright © 2021 JBoss by Red Hat. All rights reserved.