public class SerializerExternalizer<T> extends Object implements Externalizer<T>
Externalizer based on a Serializer.| Constructor and Description |
|---|
SerializerExternalizer(Class<T> targetClass,
Serializer<T> serializer) |
| Modifier and Type | Method and Description |
|---|---|
Class<T> |
getTargetClass() |
T |
readObject(ObjectInput input) |
void |
writeObject(ObjectOutput output,
T object) |
public SerializerExternalizer(Class<T> targetClass, Serializer<T> serializer)
public void writeObject(ObjectOutput output, T object) throws IOException
writeObject in interface Externalizer<T>IOExceptionpublic T readObject(ObjectInput input) throws IOException
readObject in interface Externalizer<T>IOExceptionpublic Class<T> getTargetClass()
getTargetClass in interface Externalizer<T>Copyright © 2020 JBoss by Red Hat. All rights reserved.